Click or drag to resize

UtilsPointInTriangle Method

Returns true, if the point is inside the triangle.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.22.0
Syntax
C#
public static bool PointInTriangle(
	dvec2 point,
	dvec2 v1,
	dvec2 v2,
	dvec2 v3
)

Parameters

point  dvec2
Point to test
v1  dvec2
Triangle corner.
v2  dvec2
Triangle corner.
v3  dvec2
Triangle corner.

Return Value

Boolean
True, if the point is inside the triangle.
See Also