mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 20:34:58 +00:00
identity quat aux
This commit is contained in:
@@ -13,6 +13,15 @@
|
||||
#include "cglm-quat-simd.h"
|
||||
#include "cglm-vec.h"
|
||||
|
||||
#define GLM_QUAT_IDENTITY_INIT {0.0f, 0.0f, 0.0f, 1.0f}
|
||||
#define GLM_QUAT_IDENTITY (versor){0.0f, 0.0f, 0.0f, 1.0f}
|
||||
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_quat_identity(versor q) {
|
||||
glm_vec4_dup(GLM_QUAT_IDENTITY, q);
|
||||
}
|
||||
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_quat(versor q,
|
||||
|
||||
Reference in New Issue
Block a user