Cross#
-
template<typename T>
T Cross(
)# Computes the 2D cross product of two vectors.
For vectors (a.x, a.y) and (b.x, b.y), returns (a.x * b.y - a.y * b.x).
- Template Parameters:
T – The component type of the vectors.
- Parameters:
a – [in] The first vector.
b – [in] The second vector.
- Returns:
The magnitude of the z-component if the vectors were in the xy plane.