MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / normal

Method normal

physx/include/geometry/PxTriangle.h:102–106  ·  view source on GitHub ↗

\brief Compute the normal of the Triangle. \param[out] _normal Triangle normal. */

Source from the content-addressed store, hash-verified

100 \param[out] _normal Triangle normal.
101 */
102 PX_FORCE_INLINE void normal(PxVec3& _normal) const
103 {
104 _normal = (verts[1]-verts[0]).cross(verts[2]-verts[0]);
105 _normal.normalize();
106 }
107
108 /**
109 \brief Compute the unnormalized normal of the triangle.

Callers 15

computeActiveEdgesMethod · 0.80
calculateMTDFunction · 0.80
sweepCapsuleCapsuleMethod · 0.80
onEventMethod · 0.80
onEventMethod · 0.80
testTriangleFaceNormalFunction · 0.80
testPolyEdgeNormalFunction · 0.80
generatedPolyContactsFunction · 0.80
processTriangleMethod · 0.80

Calls 2

crossMethod · 0.45
normalizeMethod · 0.45

Tested by

no test coverage detected