mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Merge branch '0.9.8'
This commit is contained in:
commit
02b954f9eb
@ -71,9 +71,9 @@ namespace glm
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
T QuatLen = sqrt(Vec3Len * Vec3Len + q.w * q.w);
|
|
||||||
T t = atan(Vec3Len, T(q.w)) / Vec3Len;
|
T t = atan(Vec3Len, T(q.w)) / Vec3Len;
|
||||||
return tquat<T, P>(log(QuatLen), t * q.x, t * q.y, t * q.z);
|
T QuatLen2 = Vec3Len * Vec3Len + q.w * q.w;
|
||||||
|
return tquat<T, P>(static_cast<T>(0.5) * log(QuatLen2), t * q.x, t * q.y, t * q.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,6 +69,9 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
|
|||||||
- Removed GLM_LEFT_HANDED, use GLM_FORCE_LEFT_HANDED instead
|
- Removed GLM_LEFT_HANDED, use GLM_FORCE_LEFT_HANDED instead
|
||||||
|
|
||||||
#### [GLM 0.9.8.1](https://github.com/g-truc/glm/tree/0.9.8) - 2016-XX-XX
|
#### [GLM 0.9.8.1](https://github.com/g-truc/glm/tree/0.9.8) - 2016-XX-XX
|
||||||
|
##### Improvements:
|
||||||
|
- Optimized quaternion log function #554
|
||||||
|
|
||||||
##### Fixes:
|
##### Fixes:
|
||||||
- Fixed GCC warning filtering, replaced -pedantic by -Wpedantic
|
- Fixed GCC warning filtering, replaced -pedantic by -Wpedantic
|
||||||
- Fixed SIMD faceforward bug. #549
|
- Fixed SIMD faceforward bug. #549
|
||||||
|
Loading…
Reference in New Issue
Block a user