Lexicographic pick among nearest-point candidates: smaller distSq wins; on a near-tie, larger align wins.
distSq
align
Use this when two geometries share a vertex so nearest-point distances are equal and a later-wins compare would always take the second candidate.
Lexicographic pick among nearest-point candidates: smaller
distSqwins; on a near-tie, largeralignwins.Use this when two geometries share a vertex so nearest-point distances are equal and a later-wins compare would always take the second candidate.