diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-10-30 09:44:42 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-10-30 09:44:42 +0300 |
commit | 281f236e6ea4838d121b0872475520fac36d03f7 (patch) | |
tree | 418fc8d0957bced577d9a7e8b733cbc22f7b383d /extern/bullet/Bullet/CollisionShapes/SphereShape.cpp | |
parent | cb9988332ad1a65390a94865092d86e961e85c66 (diff) |
Minor changes in Bullet:
- on Ton's request use double versions of cos,sin,tan, sqrt etc.
just like Solid in MT_Scalar #if defined (__sun) || defined (__sun__) || defined (__sparc) || defined (__APPLE__)
- updated an url in the header of files
Diffstat (limited to 'extern/bullet/Bullet/CollisionShapes/SphereShape.cpp')
-rw-r--r-- | extern/bullet/Bullet/CollisionShapes/SphereShape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extern/bullet/Bullet/CollisionShapes/SphereShape.cpp b/extern/bullet/Bullet/CollisionShapes/SphereShape.cpp index 6afb0fe5091..8c28cca172e 100644 --- a/extern/bullet/Bullet/CollisionShapes/SphereShape.cpp +++ b/extern/bullet/Bullet/CollisionShapes/SphereShape.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Erwin Coumans http://www.erwincoumans.com + * Copyright (c) 2005 Erwin Coumans http://continuousphysics.com/Bullet/ * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, @@ -25,11 +25,11 @@ SimdVector3 SphereShape::LocalGetSupportingVertexWithoutMargin(const SimdVector3 float radius = m_radius - GetMargin(); SimdScalar len = vec.length2(); - if (fabsf(len) < 0.0001f) + if (SimdFabs(len) < 0.0001f) { return SimdVector3(m_localScaling[0] * radius,m_localScaling[1]*radius,m_localScaling[2]*radius); } - return vec * (m_localScaling*(radius / sqrtf(len))); + return vec * (m_localScaling*(radius / SimdSqrt(len))); } SimdVector3 SphereShape::LocalGetSupportingVertex(const SimdVector3& vec)const |