mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Use standard (f)abs functions
This commit is contained in:
@ -133,7 +133,6 @@ typedef uint32_t hsGSeedValue;
|
||||
|
||||
#define hsLongAlign(n) (((n) + 3) & ~3L)
|
||||
|
||||
#define hsABS(x) ((x) < 0 ? -(x) : (x))
|
||||
#define hsSGN(x) (((x) < 0) ? -1 : ( ((x) > 0) ? 1 : 0 ))
|
||||
|
||||
#define hsBitTst2Bool(value, mask) (((value) & (mask)) != 0)
|
||||
|
@ -81,7 +81,7 @@ hsPoint3 hsQuat::Rotate(const hsScalarTriple* v) const
|
||||
hsQuat qVec(v->fX, v->fY, v->fZ, 0);
|
||||
hsQuat t = qInv * qVec;
|
||||
hsQuat res = (t * (*this));
|
||||
//hsAssert(hsABS(res.fW)<1e-5, "Error rotating vector");
|
||||
//hsAssert(fabs(res.fW)<1e-5, "Error rotating vector");
|
||||
return hsPoint3(res.fX, res.fY, res.fZ);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user