struct: fix glms_rotate_atm signature

This commit is contained in:
Recep Aslantas
2023-12-31 13:21:08 +03:00
parent 67ce1519c5
commit 5be1c2f059

View File

@@ -22,7 +22,7 @@
CGLM_INLINE mat4s glms_rotate_make(float angle, vec3s axis);
CGLM_INLINE mat4s glms_rotate(mat4s m, float angle, vec3s axis);
CGLM_INLINE mat4s glms_rotate_at(mat4s m, vec3s pivot, float angle, vec3s axis);
CGLM_INLINE mat4s glms_rotate_atm(mat4s m, vec3s pivot, float angle, vec3s axis);
CGLM_INLINE mat4s glms_rotate_atm(vec3s pivot, float angle, vec3s axis);
CGLM_INLINE mat4s glms_spin(mat4s m, float angle, vec3s axis);
CGLM_INLINE vec3s glms_decompose_scalev(mat4s m);
CGLM_INLINE bool glms_uniscaled(mat4s m);
@@ -125,7 +125,6 @@ glms_rotate_make(float angle, vec3s axis) {
* this should work faster than glm_rotate_at because it reduces
* one glm_translate.
*
* @param[in] m affine transfrom
* @param[in] pivot rotation center
* @param[in] angle angle (radians)
* @param[in] axis axis
@@ -133,7 +132,8 @@ glms_rotate_make(float angle, vec3s axis) {
*/
CGLM_INLINE
mat4s
glms_rotate_atm(mat4s m, vec3s pivot, float angle, vec3s axis) {
glms_rotate_atm(vec3s pivot, float angle, vec3s axis) {
mat4s m;
glm_rotate_atm(m.raw, pivot.raw, angle, axis.raw);
return m;
}