| GeometryHelperArePointsOnOppositeSides 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.GeometryAssembly: 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
)
Public Shared Function ArePointsOnOppositeSides (
pointP As Vector3F,
pointQ As Vector3F,
planePointA As Vector3F,
planePointB As Vector3F,
planePointC As Vector3F
) As Nullable(Of Boolean)
public:
static Nullable<bool> ArePointsOnOppositeSides(
Vector3F pointP,
Vector3F pointQ,
Vector3F planePointA,
Vector3F planePointB,
Vector3F planePointC
)
static member ArePointsOnOppositeSides :
pointP : Vector3F *
pointQ : Vector3F *
planePointA : Vector3F *
planePointB : Vector3F *
planePointC : Vector3F -> Nullable<bool>
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