implement rotate_at for quat and provide make version

This commit is contained in:
Recep Aslantas
2018-04-17 12:17:04 +03:00
parent c63c6c90ac
commit 33e951fe2e
6 changed files with 121 additions and 7 deletions

View File

@@ -118,8 +118,14 @@ glmc_rotate(mat4 m, float angle, vec3 axis) {
CGLM_EXPORT
void
glmc_rotate_at(mat4 model, vec3 pivot, float angle, vec3 axis) {
glm_rotate_at(model, pivot, angle, axis);
glmc_rotate_at(mat4 m, vec3 pivot, float angle, vec3 axis) {
glm_rotate_at(m, pivot, angle, axis);
}
CGLM_EXPORT
void
glmc_rotate_atm(mat4 m, vec3 pivot, float angle, vec3 axis) {
glm_rotate_atm(m, pivot, angle, axis);
}
CGLM_EXPORT

View File

@@ -194,3 +194,15 @@ void
glmc_quat_rotate(mat4 m, versor q, mat4 dest) {
glm_quat_rotate(m, q, dest);
}
CGLM_EXPORT
void
glmc_quat_rotate_at(mat4 model, versor q, vec3 pivot) {
glm_quat_rotate_at(model, q, pivot);
}
CGLM_EXPORT
void
glmc_quat_rotate_atm(mat4 m, versor q, vec3 pivot) {
glm_quat_rotate_atm(m, q, pivot);
}