mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Compute quaternion rotating a vector into another
Both `vec3` inputs should be of unit length; returns a unit quaternion.
This commit is contained in:
@@ -44,6 +44,12 @@ glmc_quat_copy(versor q, versor dest) {
|
||||
glm_quat_copy(q, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
void
|
||||
glmc_quat_from_vecs(vec3 a, vec3 b, versor dest) {
|
||||
glm_quat_from_vecs(a, b, dest);
|
||||
}
|
||||
|
||||
CGLM_EXPORT
|
||||
float
|
||||
glmc_quat_norm(versor q) {
|
||||
|
||||
Reference in New Issue
Block a user