made quat struct and also exported it

This commit is contained in:
John Choi
2023-12-08 13:05:53 -06:00
parent 2f7dbad6a8
commit 4ee6aea037
5 changed files with 200 additions and 4 deletions

View File

@@ -26,6 +26,42 @@ glmc_quat_init(versor q, float x, float y, float z, float w) {
glm_quat_init(q, x, y, z, w);
}
CGLM_EXPORT
void
glmc_euler_xyz_quat(versor q, vec3 angles) {
glm_euler_xyz_quat(q, angles);
}
CGLM_EXPORT
void
glmc_euler_xzy_quat(versor q, vec3 angles) {
glm_euler_xzy_quat(q, angles);
}
CGLM_EXPORT
void
glmc_euler_yxz_quat(versor q, vec3 angles) {
glm_euler_yxz_quat(q, angles);
}
CGLM_EXPORT
void
glmc_euler_yzx_quat(versor q, vec3 angles) {
glm_euler_yzx_quat(q, angles);
}
CGLM_EXPORT
void
glmc_euler_zxy_quat(versor q, vec3 angles) {
glm_euler_zxy_quat(q, angles);
}
CGLM_EXPORT
void
glmc_euler_zyx_quat(versor q, vec3 angles) {
glm_euler_zyx_quat(q, angles);
}
CGLM_EXPORT
void
glmc_quat(versor q, float angle, float x, float y, float z) {