11void mathQuatApply(
float* qout,
const float* q1,
const float* q2);
float rsqrtf(float x)
Perform a fast, approximate reciprocal square root.
Definition quaternions.c:11
void mathQuatFromTwoVectors(float *qOut, const float *v1, const float *v2)
Compute the quaterntion rotation between two vectors, from v1 to v2.
Definition quaternions.c:199
float mathsqrtf(float x)
Perform a fast, approximate square root.
Definition quaternions.c:33
void mathEulerToQuat(float *q, const float *euler)
convert euler angles (in radians) to a quaternion.
Definition quaternions.c:58
void mathComputeQuaternionDeltaBetweenQuaternions(float *qOut, const float *q1, const float *b)
Compute the difference between two quaternions.
Definition quaternions.c:179
void mathQuatApply(float *qout, const float *q1, const float *q2)
Rotate one quaternion by another (and do not normalize)
Definition quaternions.c:82
void mathCrossProduct(float *p, const float *a, const float *b)
Perform a 3D cross product.
Definition quaternions.c:118
void mathRotateVectorByInverseOfQuaternion(float *pout, const float *q, const float *p)
Rotate a 3D vector by the inverse of a quaternion.
Definition quaternions.c:156
void mathQuatNormalize(float *qout, const float *qin)
Normalize a quaternion.
Definition quaternions.c:101
void mathRotateVectorByQuaternion(float *pout, const float *q, const float *p)
Rotate a 3D vector by a quaternion.
Definition quaternions.c:134