removed normalize (btAcos has clamping) and removed assert in btAcos.

This commit is contained in:
erwin.coumans
2009-12-21 23:43:59 +00:00
parent db25e21fde
commit b5218f3ca7
2 changed files with 0 additions and 3 deletions

View File

@@ -249,7 +249,6 @@ SIMD_FORCE_INLINE btScalar btCos(btScalar x) { return cosf(x); }
SIMD_FORCE_INLINE btScalar btSin(btScalar x) { return sinf(x); }
SIMD_FORCE_INLINE btScalar btTan(btScalar x) { return tanf(x); }
SIMD_FORCE_INLINE btScalar btAcos(btScalar x) {
btAssert(x <= btScalar(1.));
if (x<btScalar(-1))
x=btScalar(-1);
if (x>btScalar(1))

View File

@@ -98,8 +98,6 @@ public:
{
btQuaternion orn1 = orn0.nearest(orn1a);
btQuaternion dorn = orn1 * orn0.inverse();
///floating point inaccuracy can lead to w component > 1..., which breaks
dorn.normalize();
angle = dorn.getAngle();
axis = btVector3(dorn.x(),dorn.y(),dorn.z());
axis[3] = btScalar(0.);