Click or drag to resize
DigitalRuneGeometryHelperArePointsOnOppositeSides Method
Determines whether two points P and Q are on opposite sides of a plane. The plane is determined by three points (A, B, C).

Namespace: DigitalRune.Geometry
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public static Nullable<bool> ArePointsOnOppositeSides(
	Vector3F pointP,
	Vector3F pointQ,
	Vector3F planePointA,
	Vector3F planePointB,
	Vector3F planePointC
)

Parameters

pointP
Type: DigitalRune.Mathematics.AlgebraVector3F
The point P.
pointQ
Type: DigitalRune.Mathematics.AlgebraVector3F
The point Q.
planePointA
Type: DigitalRune.Mathematics.AlgebraVector3F
The plane point A.
planePointB
Type: DigitalRune.Mathematics.AlgebraVector3F
The plane point B.
planePointC
Type: DigitalRune.Mathematics.AlgebraVector3F
The plane point C.

Return Value

Type: NullableBoolean
if P and Q are on opposite sides; if they are on the same side; and if the point is on the plane (within a numerical tolerance) or if the case is degenerate (A, B, C does not form a valid triangle).
Remarks
This method creates a plane from the three points A, B, and C. The points must be in ordered counter-clockwise. The front-face (which points to the outside of the shape - the empty half-space) is defined through the counter-clockwise order of the points.
See Also