mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
Merge branch '0.9.1' into 0.9.2
This commit is contained in:
commit
8663d9f67d
@ -1402,18 +1402,6 @@ namespace glm
|
||||
return fi.f;
|
||||
}
|
||||
|
||||
inline float intBitsToFloat(uint const & value)
|
||||
{
|
||||
union
|
||||
{
|
||||
float f;
|
||||
uint u;
|
||||
} fu;
|
||||
|
||||
fu.u = value;
|
||||
return fu.f;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline detail::tvec2<float> intBitsToFloat
|
||||
(
|
||||
@ -1447,6 +1435,51 @@ namespace glm
|
||||
intBitsToFloat(value.y));
|
||||
}
|
||||
|
||||
inline float uintBitsToFloat(uint const & value)
|
||||
{
|
||||
union
|
||||
{
|
||||
float f;
|
||||
uint u;
|
||||
} fu;
|
||||
|
||||
fu.u = value;
|
||||
return fu.f;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline detail::tvec2<float> uintBitsToFloat
|
||||
(
|
||||
detail::tvec2<T> const & value
|
||||
)
|
||||
{
|
||||
return detail::tvec2<T>(
|
||||
uintBitsToFloat(value.x),
|
||||
uintBitsToFloat(value.y));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline detail::tvec3<float> uintBitsToFloat
|
||||
(
|
||||
detail::tvec3<T> const & value
|
||||
)
|
||||
{
|
||||
return detail::tvec3<T>(
|
||||
uintBitsToFloat(value.x),
|
||||
uintBitsToFloat(value.y));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline detail::tvec4<float> uintBitsToFloat
|
||||
(
|
||||
detail::tvec4<T> const & value
|
||||
)
|
||||
{
|
||||
return detail::tvec4<T>(
|
||||
uintBitsToFloat(value.x),
|
||||
uintBitsToFloat(value.y));
|
||||
}
|
||||
|
||||
template <typename genType>
|
||||
inline genType fma
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user