inochi2d.core.math.trig

Inochi2D Triangles and trigonometry

Members

Functions

findClosest
ptrdiff_t findClosest(inout(vec2) point, inout(vec2)[] mesh)

Finds the closest point to the given point.

findClosest2
ptrdiff_t[2] findClosest2(inout(vec2) point, inout(vec2)[] mesh)

Finds the closest 2 points to the given point.

sign
float sign(vec2 p1, vec2 p2, vec2 p3)

Gets the sign between 3 points.

Structs

Triangle
struct Triangle

A 2D triangle

Meta

Authors

Luna Nielsen