module
Eagle::Geometry
Overview
Polygon helpers used by the renderer and physics.
Defined in:
eagle/graphics/graphics.crClass Method Summary
-
.point_in_triangle?(p : Vec2, a : Vec2, b : Vec2, c : Vec2) : Bool
True when p lies inside the triangle a, b, c.
-
.triangulate(pts : Array(Vec2)) : Array(Int32)
Splits a simple polygon, convex or concave, into triangles by ear clipping.
Class Method Detail
True when p lies inside the triangle a, b, c.