mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Add missing implementations of fmat4x4SIMD unary operators.
This commit is contained in:
parent
c6c8dd15f2
commit
18c616528a
@ -472,6 +472,52 @@ GLM_FUNC_QUALIFIER fmat4x4SIMD operator/
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Unary constant operators
|
||||
GLM_FUNC_QUALIFIER fmat4x4SIMD const operator-
|
||||
(
|
||||
fmat4x4SIMD const & m
|
||||
)
|
||||
{
|
||||
return detail::fmat4x4SIMD
|
||||
(
|
||||
-m[0],
|
||||
-m[1],
|
||||
-m[2],
|
||||
-m[3]
|
||||
);
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER fmat4x4SIMD const operator--
|
||||
(
|
||||
fmat4x4SIMD const & m,
|
||||
int
|
||||
)
|
||||
{
|
||||
return detail::fmat4x4SIMD
|
||||
(
|
||||
m[0] - 1.0f,
|
||||
m[1] - 1.0f,
|
||||
m[2] - 1.0f,
|
||||
m[3] - 1.0f
|
||||
);
|
||||
}
|
||||
|
||||
GLM_FUNC_QUALIFIER fmat4x4SIMD const operator++
|
||||
(
|
||||
fmat4x4SIMD const & m,
|
||||
int
|
||||
)
|
||||
{
|
||||
return detail::fmat4x4SIMD
|
||||
(
|
||||
m[0] + 1.0f,
|
||||
m[1] + 1.0f,
|
||||
m[2] + 1.0f,
|
||||
m[3] + 1.0f
|
||||
);
|
||||
}
|
||||
|
||||
}//namespace detail
|
||||
|
||||
GLM_FUNC_QUALIFIER detail::tmat4x4<float> mat4_cast
|
||||
|
Loading…
Reference in New Issue
Block a user