mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
moved all my stuff to euler because it fits there better. Also, had to move my tests into a single euler test because it wouldn't work outside that one test. Maybe later I will create test_euler.h like how test_quat.h works
This commit is contained in:
37
src/euler.c
37
src/euler.c
@@ -61,3 +61,40 @@ void
|
||||
glmc_euler_by_order(vec3 angles, glm_euler_seq axis, mat4 dest) {
|
||||
glm_euler_by_order(angles, axis, dest);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
36
src/quat.c
36
src/quat.c
@@ -26,42 +26,6 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user