Triangle

A 2D triangle

Members

Functions

barycentric
vec3 barycentric(vec2 pt)

Gets the barycentric coordinates of the given point.

contains
bool contains(vec2 pt)

Whether the triangle contains the given point.

Variables

p1
vec2 p1;
Undocumented in source.
p2
vec2 p2;
Undocumented in source.
p3
vec2 p3;
Undocumented in source.

Meta