0
0
mirror of https://github.com/g-truc/glm.git synced 2026-01-18 17:21:28 +01:00

Revert Quaternion rotation order

This commit is contained in:
christophe
2025-10-18 09:37:41 +02:00
committed by Christophe
parent cfec72509a
commit 9ce89d682b
2 changed files with 7 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ namespace glm
T const AngleRad(angle);
T const Sin = sin(AngleRad * static_cast<T>(0.5));
return qua<T, Q>::wxyz(cos(AngleRad * static_cast<T>(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin) * q;
return q * qua<T, Q>::wxyz(cos(AngleRad * static_cast<T>(0.5)), Tmp.x * Sin, Tmp.y * Sin, Tmp.z * Sin);
}
}//namespace glm

View File

@@ -104,6 +104,12 @@ target_link_libraries(main PRIVATE glm::glm)
## Release notes
### [GLM 1.0.3](https://github.com/g-truc/glm/1.0) - 2025-XX-XX
#### Fixes:
- Fixed Quaternion `rotate` direction (reverted)
- Fixed vec4 to vec3 conversion #1398
### [GLM 1.0.2](https://github.com/g-truc/glm/releases/tag/1.0.2) - 2025-10-15
#### Features: