mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
Merge branch 'fix-typeconversions' into fix-tvec-copy-cpp11
This commit is contained in:
commit
65cd3df301
@ -190,7 +190,7 @@ namespace glm
|
|||||||
T bottom, T top
|
T bottom, T top
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
tmat4x4<T, defaultp> Result(1);
|
tmat4x4<T, defaultp> Result(T(1));
|
||||||
Result[0][0] = static_cast<T>(2) / (right - left);
|
Result[0][0] = static_cast<T>(2) / (right - left);
|
||||||
Result[1][1] = static_cast<T>(2) / (top - bottom);
|
Result[1][1] = static_cast<T>(2) / (top - bottom);
|
||||||
Result[2][2] = - static_cast<T>(1);
|
Result[2][2] = - static_cast<T>(1);
|
||||||
|
@ -8,7 +8,7 @@ namespace glm
|
|||||||
tvec3<T, P> const & v)
|
tvec3<T, P> const & v)
|
||||||
{
|
{
|
||||||
return translate(
|
return translate(
|
||||||
tmat4x4<T, P>(1.0f), v);
|
tmat4x4<T, P>(T(1)), v);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
|
Loading…
Reference in New Issue
Block a user