mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 06:44:35 +00:00
gtc/quaternion matrix conversion const support
This commit is contained in:
parent
10572b2f22
commit
78e420703c
@ -134,8 +134,8 @@ namespace glm
|
||||
|
||||
/// Explicit conversion operators
|
||||
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||
GLM_FUNC_DECL explicit operator tmat3x3<T, P>();
|
||||
GLM_FUNC_DECL explicit operator tmat4x4<T, P>();
|
||||
GLM_FUNC_DECL explicit operator tmat3x3<T, P>() const;
|
||||
GLM_FUNC_DECL explicit operator tmat4x4<T, P>() const;
|
||||
# endif
|
||||
|
||||
/// Create a quaternion from two normalized axis
|
||||
|
@ -265,13 +265,13 @@ namespace detail
|
||||
|
||||
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||
template <typename T, precision P>
|
||||
GLM_FUNC_QUALIFIER tquat<T, P>::operator tmat3x3<T, P>()
|
||||
GLM_FUNC_QUALIFIER tquat<T, P>::operator tmat3x3<T, P>() const
|
||||
{
|
||||
return mat3_cast(*this);
|
||||
}
|
||||
|
||||
template <typename T, precision P>
|
||||
GLM_FUNC_QUALIFIER tquat<T, P>::operator tmat4x4<T, P>()
|
||||
GLM_FUNC_QUALIFIER tquat<T, P>::operator tmat4x4<T, P>() const
|
||||
{
|
||||
return mat4_cast(*this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user