|
@@ -823,6 +823,16 @@ namespace glm
|
|
|
v.w / scalar);
|
|
v.w / scalar);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ template <typename T, precision P>
|
|
|
|
|
+ GLM_FUNC_QUALIFIER tvec4<T, P> operator/(tvec4<T, P> const & v, tvec1<T, P> const & scalar)
|
|
|
|
|
+ {
|
|
|
|
|
+ return tvec4<T, P>(
|
|
|
|
|
+ v1.x / v2.x,
|
|
|
|
|
+ v1.y / v2.x,
|
|
|
|
|
+ v1.z / v2.x,
|
|
|
|
|
+ v1.w / v2.x);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
template <typename T, precision P>
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> operator/(T scalar, tvec4<T, P> const & v)
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> operator/(T scalar, tvec4<T, P> const & v)
|
|
|
{
|
|
{
|
|
@@ -833,6 +843,16 @@ namespace glm
|
|
|
scalar / v.w);
|
|
scalar / v.w);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ template <typename T, precision P>
|
|
|
|
|
+ GLM_FUNC_DECL tvec4<T, P> operator/(tvec1<T, P> const & scalar, tvec4<T, P> const & v)
|
|
|
|
|
+ {
|
|
|
|
|
+ return tvec4<T, P>(
|
|
|
|
|
+ v1.x / v2.x,
|
|
|
|
|
+ v1.x / v2.y,
|
|
|
|
|
+ v1.x / v2.z,
|
|
|
|
|
+ v1.x / v2.w);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
template <typename T, precision P>
|
|
template <typename T, precision P>
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> operator/(tvec4<T, P> const & v1, tvec4<T, P> const & v2)
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> operator/(tvec4<T, P> const & v1, tvec4<T, P> const & v2)
|
|
|
{
|
|
{
|