Method Cross
Cross(Vector2, Vector2)
Returns the 2D scalar cross product of two vectors.
public static float Cross(Vector2 lhs, Vector2 rhs)
Parameters
lhsVector2The left-hand vector.
rhsVector2The right-hand vector.
Returns
- float
The signed scalar cross-product value. Its sign encodes relative winding direction and its magnitude encodes the parallelogram area formed by the two vectors.