mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
identity quat aux
This commit is contained in:
@@ -13,6 +13,15 @@
|
|||||||
#include "cglm-quat-simd.h"
|
#include "cglm-quat-simd.h"
|
||||||
#include "cglm-vec.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
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_quat(versor q,
|
glm_quat(versor q,
|
||||||
|
|||||||
Reference in New Issue
Block a user