math.triangle.inside

Syntax

b = math.triangle.inside(v1,v2,v3,vIn)

Determine if a point falls inside a 2D triangle.

Returns:

b - Boolean indicating whether or not the point is inside the triangle

Arguments:

v1 - 2D triangle vertex

v2 - 2D triangle vertex

v3 - 2D triangle vertex

vIn - 2D point whose status is tested