mirror of
https://github.com/g-truc/glm.git
synced 2024-11-13 22:01:46 +00:00
Add const to quaternion conversion operators
This commit is contained in:
parent
13d2cea73f
commit
fe6fb29107
@ -101,8 +101,8 @@ namespace glm
|
|||||||
|
|
||||||
/// Explicit conversion operators
|
/// Explicit conversion operators
|
||||||
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||||
GLM_FUNC_DECL explicit operator mat<3, 3, T, Q>();
|
GLM_FUNC_DECL explicit operator mat<3, 3, T, Q>() const;
|
||||||
GLM_FUNC_DECL explicit operator mat<4, 4, T, Q>();
|
GLM_FUNC_DECL explicit operator mat<4, 4, T, Q>() const;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/// Create a quaternion from two normalized axis
|
/// Create a quaternion from two normalized axis
|
||||||
|
@ -197,13 +197,13 @@ namespace detail
|
|||||||
|
|
||||||
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER qua<T, Q>::operator mat<3, 3, T, Q>()
|
GLM_FUNC_QUALIFIER qua<T, Q>::operator mat<3, 3, T, Q>() const
|
||||||
{
|
{
|
||||||
return mat3_cast(*this);
|
return mat3_cast(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER qua<T, Q>::operator mat<4, 4, T, Q>()
|
GLM_FUNC_QUALIFIER qua<T, Q>::operator mat<4, 4, T, Q>() const
|
||||||
{
|
{
|
||||||
return mat4_cast(*this);
|
return mat4_cast(*this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user