|
|
|
@ -89,6 +89,11 @@ struct Vector2
@@ -89,6 +89,11 @@ struct Vector2
|
|
|
|
|
// dot product
|
|
|
|
|
T operator *(const Vector2<T> &v) const; |
|
|
|
|
|
|
|
|
|
// dot product (same as above but a more easily understood name)
|
|
|
|
|
T dot(const Vector2<T> &v) const { |
|
|
|
|
return *this * v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// cross product
|
|
|
|
|
T operator %(const Vector2<T> &v) const; |
|
|
|
|
|
|
|
|
|