The open source OpenXR runtime

a/math: Add vec2 cross product

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2519>

+6
+6
src/xrt/auxiliary/math/m_vec2.h
··· 97 97 } 98 98 99 99 static inline float 100 + m_vec2_cross(struct xrt_vec2 l, struct xrt_vec2 r) 101 + { 102 + return l.x * r.y - r.x * l.y; 103 + } 104 + 105 + static inline float 100 106 m_vec2_dot(struct xrt_vec2 l, struct xrt_vec2 r) 101 107 { 102 108 return l.x * r.x + l.y * r.y;