New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -22,13 +22,13 @@ void axisang_from_quat(struct axisang *dst, const struct quat *q)
|
|||
{
|
||||
float len, leni;
|
||||
|
||||
len = q->x*q->x + q->y*q->y + q->z*q->z;
|
||||
len = q->x * q->x + q->y * q->y + q->z * q->z;
|
||||
if (!close_float(len, 0.0f, EPSILON)) {
|
||||
leni = 1.0f/sqrtf(len);
|
||||
leni = 1.0f / sqrtf(len);
|
||||
dst->x = q->x * leni;
|
||||
dst->y = q->y * leni;
|
||||
dst->z = q->z * leni;
|
||||
dst->w = acosf(q->w)*2.0f;
|
||||
dst->w = acosf(q->w) * 2.0f;
|
||||
} else {
|
||||
dst->x = 0.0f;
|
||||
dst->y = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue