Package-level declarations

Functions

Link copied to clipboard
fun List<Vector2>.convexHull(): ShapeContour

Computes the convex hull of a list of 2D points using the Monotone chain algorithm. The convex hull is the smallest convex shape that encompasses all the points in the input list.

Link copied to clipboard
fun List<Vector2>.convexHullSet(): Set<Vector2>

Computes the convex hull of a list of 2D points and returns the vertices of the hull as a set. The convex hull is the smallest convex polygon that can enclose all points in the input list.