Functions
Link copied to clipboard
Link copied to clipboard
Returns a convex polygon through points, which may go round either way: polygon(listOf(Vec2(0f, 0f), Vec2(20f, 0f), Vec2(10f, 15f))) is a triangle. A dent, a crossing, or points in a line are refused: a concave shape is made of several convex ones, as a compound body.