| GeometryHelperIsInFront Method |
Determines whether the point is in front of the triangle.
Namespace: DigitalRune.GeometryAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax public static float IsInFront(
Triangle triangle,
Vector3F point
)
Public Shared Function IsInFront (
triangle As Triangle,
point As Vector3F
) As Single
public:
static float IsInFront(
Triangle triangle,
Vector3F point
)
static member IsInFront :
triangle : Triangle *
point : Vector3F -> float32
Parameters
- triangle
- Type: DigitalRune.Geometry.ShapesTriangle
The triangle. - point
- Type: DigitalRune.Mathematics.AlgebraVector3F
The point.
Return Value
Type:
Single
A value greater than 0 if the point is in front. A value less than 0 if the point is on the
back-side.
Remarks
A point is in front of the triangle if the vertex order of the triangle viewed from the
point position is counter-clockwise (CCW). The absolute of the returned value is linearly
proportional to the distance from the triangle plane.
See Also