diff --git a/etk/math/Vector2D.h b/etk/math/Vector2D.h index 7949537..753f2a5 100644 --- a/etk/math/Vector2D.h +++ b/etk/math/Vector2D.h @@ -216,6 +216,14 @@ namespace etk { --(*this); return result; } + /** + * @brief Return the cross product + * @param v The other vector in the cross product + */ + btScalar cross(const Vector2D& _v) const { + return m_floats[0] * _v.m_floats[1] + - m_floats[1] * _v.m_floats[0]; + } /** * @brief Return the dot product * @param v The other vector in the dot product