Triangle.contains

Whether the triangle contains the given point.

struct Triangle
@nogc pragma(inline, true) nothrow pure
bool
contains
(
vec2 pt
)

Parameters

pt vec2

The point to check.

Return Value

Type: bool

true if the given point lies within this triangle, false otherwise.

Meta