m/vec3: Add operator/ for scalar division

This commit is contained in:
Mateo de Mayo 2021-12-13 09:36:10 -03:00 committed by Jakob Bornecrantz
parent bcb4cd82cd
commit 76d7729e4d

View file

@ -169,6 +169,12 @@ operator/(const struct xrt_vec3 &a, const struct xrt_vec3 &b)
return m_vec3_div(a, b);
}
static inline struct xrt_vec3
operator/(const struct xrt_vec3 &a, const float &b)
{
return m_vec3_div_scalar(a, b);
}
static inline void
operator+=(struct xrt_vec3 &a, const struct xrt_vec3 &b)
{