Back to class index
| Polyhedron::FaceContainmentDistance2DSyntaxfloat Polyhedron::FaceContainmentDistance2D(int faceIndex, const float4 &worldSpacePoint, float polygonThickness=1e-3f) const; [84 lines of code]A helper for Contains() and FaceContains() tests: Returns a positive value if the given point is contained in the given face, and a negative value if the given point is outside the face. The magnitude of the return value reports a pseudo-distance from the point to the nearest edge of the face polygon. This is used as a robustness/stability criterion to estimate how numerically believable the result is. |