Utility.PointInTriangle (Point2D, Point2D, Point2D, Point2D) Method

2D point in triangle test.
Public Shared Function PointInTriangle( _ 
ByVal test As Point2D, _ 
ByVal a As Point2D, _ 
ByVal b As Point2D, _ 
ByVal c As Point2D
) As Boolean
This language is not supported or no code example is available.
public static bool PointInTriangle( 
Point2D test
Point2D a
Point2D b
Point2D c 
)
This language is not supported or no code example is available.

Parameters

test
Point2D

The test 2D point

a
Point2D

The first triangle vertex

b
Point2D

The second triangle vertex

c
Point2D

The third triangle vertex

Return Value

bool

Returns true if the point is inside the triangle, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition