Skip to content

point2CompareLexicographic

point2CompareLexicographic(pA, pB): ComparatorResult

Defined in: point2.ts:83

Arbitrary but deterministic total order on points, by x then y.

Not a geometric ordering — no such thing exists in the plane. It is the canonical order that sweep-line and hull algorithms sort by, and the way to put points in an ordered container. Exact, so it agrees with point2Equals.

Point2

Point2

ComparatorResult