Click or drag to resize
DigitalRuneGeometryHelperIsInFront Method
Determines whether the point is in front of the triangle.

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static float IsInFront(
	Triangle triangle,
	Vector3F point
)

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