DegeneratePolygonException

The rejection of a vertex list that closes no polygon.

Thrown by the Polygon constructor for fewer than 3 vertices, a vertex at infinity, or two consecutive vertices — the last→first wrap included — coinciding at the SCALE quantum: their shared edge would collapse, the same coincident-endpoint rule Segment enforces. The Polygon.Rectangle factory throws it for an at-infinity corner or an extent that rounds to zero.

Constructors

Link copied to clipboard
constructor(reason: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The human-readable diagnostic naming the offending vertex or count.