mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-06 22:08:09 +00:00
m/vec3: Add operator/ for scalar division
This commit is contained in:
parent
bcb4cd82cd
commit
76d7729e4d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue