| DcelMeshContains Method |
Determines whether the specified point is contained in the mesh. (This method assumes that
the mesh is a convex polyhedron.)
Namespace: DigitalRune.Geometry.MeshesAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public bool Contains(
Vector3F point,
float epsilon
)
Public Function Contains (
point As Vector3F,
epsilon As Single
) As Boolean
public:
bool Contains(
Vector3F point,
float epsilon
)
member Contains :
point : Vector3F *
epsilon : float32 -> bool
Parameters
- point
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point. - epsilon
- Type: SystemSingle
The epsilon tolerance. A point counts as "contained" if the distance to the mesh surface is
less than this value. Use a small positive value, e.g. 0.001f, for numerical robustness.
Return Value
Type:
Boolean if the specified point is contained; otherwise,
. (The result is undefined if the mesh is not a convex polyhedron.)
See Also