32 struct xrt_vec2 ret = {l.x * r.x, l.y * r.y};
37 m_vec2_mul_scalar(struct
xrt_vec2 l, float r)
39 struct xrt_vec2 ret = {l.x * r, l.y * r};
46 struct xrt_vec2 ret = {l.x + r.x, l.y + r.y};
53 struct xrt_vec2 ret = {l.x - r.x, l.y - r.y};
60 struct xrt_vec2 ret = {l.x / r.x, l.y / r.y};
65 m_vec2_div_scalar(struct
xrt_vec2 l, float r)
67 struct xrt_vec2 ret = {l.x / r, l.y / r};
74 return l.x * l.x + l.y * l.y;
81 return sqrtf(m_vec2_len_sqrd(l));
A 2 element vector with single floats.
Definition: xrt_defines.h:120
Common defines and enums for XRT.