Home
last modified time | relevance | path

Searched refs:lenSqr (Results 1 – 10 of 10) sorted by relevance

/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/NarrowPhaseCollision/
DbtComputeGjkEpaPenetration.h237 btScalar lenSqr =m_cachedSeparatingAxis.length2(); in btComputeGjkEpaPenetration() local
240 if (lenSqr < 0.0001) in btComputeGjkEpaPenetration()
244 if (lenSqr > SIMD_EPSILON*SIMD_EPSILON) in btComputeGjkEpaPenetration()
246 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in btComputeGjkEpaPenetration()
286 btScalar lenSqr = tmpNormalInB.length2(); in btComputeGjkEpaPenetration() local
287 if (lenSqr <= (SIMD_EPSILON*SIMD_EPSILON)) in btComputeGjkEpaPenetration()
290 lenSqr = m_cachedSeparatingAxis.length2(); in btComputeGjkEpaPenetration()
293 if (lenSqr > (SIMD_EPSILON*SIMD_EPSILON)) in btComputeGjkEpaPenetration()
295 tmpNormalInB /= btSqrt(lenSqr); in btComputeGjkEpaPenetration()
DbtGjkPairDetector.cpp275 btScalar lenSqr =m_cachedSeparatingAxis.length2(); in getClosestPointsNonVirtual() local
278 if (lenSqr < 0.0001) in getClosestPointsNonVirtual()
282 if (lenSqr > SIMD_EPSILON*SIMD_EPSILON) in getClosestPointsNonVirtual()
284 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in getClosestPointsNonVirtual()
331 btScalar lenSqr = tmpNormalInB.length2(); in getClosestPointsNonVirtual() local
332 if (lenSqr <= (SIMD_EPSILON*SIMD_EPSILON)) in getClosestPointsNonVirtual()
335 lenSqr = m_cachedSeparatingAxis.length2(); in getClosestPointsNonVirtual()
338 if (lenSqr > (SIMD_EPSILON*SIMD_EPSILON)) in getClosestPointsNonVirtual()
340 tmpNormalInB /= btSqrt(lenSqr); in getClosestPointsNonVirtual()
DbtGjkEpa3.h963 btScalar lenSqr = tmpNormalInB.length2();
964 if (lenSqr <= (SIMD_EPSILON*SIMD_EPSILON))
967 lenSqr = results.normal.length2();
970 if (lenSqr > (SIMD_EPSILON*SIMD_EPSILON))
972 tmpNormalInB /= btSqrt(lenSqr);
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/
DbtConvexPointCloudShape.cpp34 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() local
35 if (lenSqr < btScalar(0.0001)) in localGetSupportingVertexWithoutMargin()
40 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportingVertexWithoutMargin()
DbtCapsuleShape.cpp38 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() local
39 if (lenSqr < btScalar(0.0001)) in localGetSupportingVertexWithoutMargin()
44 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportingVertexWithoutMargin()
DbtMultiSphereShape.cpp55 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() local
56 if (lenSqr < (SIMD_EPSILON*SIMD_EPSILON)) in localGetSupportingVertexWithoutMargin()
61 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportingVertexWithoutMargin()
DbtConvexTriangleMeshShape.cpp84 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() local
85 if (lenSqr < btScalar(0.0001)) in localGetSupportingVertexWithoutMargin()
90 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportingVertexWithoutMargin()
DbtPolyhedralConvexShape.cpp334 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() local
335 if (lenSqr < btScalar(0.0001)) in localGetSupportingVertexWithoutMargin()
340 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportingVertexWithoutMargin()
DbtConvexShape.cpp239 btScalar lenSqr = vec.length2(); in localGetSupportVertexWithoutMarginNonVirtual() local
240 if (lenSqr < btScalar(0.0001)) in localGetSupportVertexWithoutMarginNonVirtual()
245 btScalar rlen = btScalar(1.) / btSqrt(lenSqr ); in localGetSupportVertexWithoutMarginNonVirtual()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
DbtConvexConvexAlgorithm.cpp154 btScalar lenSqr = ptsVector.length2(); in capsuleCapsuleDistance() local
155 if (lenSqr<= (SIMD_EPSILON*SIMD_EPSILON)) in capsuleCapsuleDistance()
163 normalOnB = ptsVector*-btRecipSqrt(lenSqr); in capsuleCapsuleDistance()