Bring back Vector2.cross()
This commit is contained in:
parent
900384a622
commit
9d7856620c
5 changed files with 18 additions and 10 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue