Bring back Vector2.cross()

This commit is contained in:
Bernhard Liebl 2018-02-08 08:48:14 +01:00 committed by poke1024
parent 900384a622
commit 9d7856620c
5 changed files with 18 additions and 10 deletions

View file

@ -98,11 +98,6 @@ real_t Vector2::cross(const Vector2 &p_other) const {
return x * p_other.y - y * p_other.x;
}
Vector2 Vector2::cross(real_t p_other) const {
return Vector2(p_other * y, -p_other * x);
}
Vector2 Vector2::floor() const {
return Vector2(Math::floor(x), Math::floor(y));

View file

@ -104,7 +104,6 @@ struct Vector2 {
real_t dot(const Vector2 &p_other) const;
real_t cross(const Vector2 &p_other) const;
Vector2 cross(real_t p_other) const;
Vector2 project(const Vector2 &p_vec) const;
Vector2 plane_project(real_t p_d, const Vector2 &p_vec) const;