Companion

object Companion

Functions

Link copied to clipboard
fun fromUnordered(points: List<Point>): Quad

Builds a Quad from four points in arbitrary order by sorting them clockwise around their centroid, starting from the corner closest to the image's top-left.