32 struct xrt_vec2 ret = {l.
x * r.x, l.y * r.y};
37 m_vec2_mul_scalar(struct
xrt_vec2 l, float 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)
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:122
Common defines and enums for XRT.
float x
Definition: xrt_defines.h:124
float y
Definition: xrt_defines.h:125