A 2d exact arithmetic point-in-triangle predicate for arbitrary triangle
orientation.
Namespace:
ceometric.ComputationalGeometry
Assembly:
ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function InTriangle2dArbitraryExact ( _
vertex1 As Point, _
vertex2 As Point, _
vertex3 As Point, _
point As Point _
) As Double |
Return Value
For a clockwise OR counterclockwise arrangement of the vertices, the predicate is
- 1 if point lies inside the triangle.
- 0 if point lies on the perimeter of the triangle.
- -1 if point lies outside the triangle.
- NaN if the triangle is degenerate.
See Also