The radial sort 'less' function is extracted out into its own standalone function, making the parent function (fixVertex) not need to know about the details of the sort.
A new XY method lengthSq is added, that computes the square of the length of the distance between the origin and the XY value.
The Cross and lengthSq methods are used for radial sorting rather than reimplementing the logic for those computations.
Description
The radial sort 'less' function is extracted out into its own standalone function, making the parent function (
fixVertex
) not need to know about the details of the sort.A new
XY
methodlengthSq
is added, that computes the square of the length of the distance between the origin and the XY value.The
Cross
andlengthSq
methods are used for radial sorting rather than reimplementing the logic for those computations.Check List
Have you:
Added unit tests? N/A, relies on existing.
Add cmprefimpl tests? (if appropriate?) N/A.
Updated release notes? (if appropriate?) Yes.
Related Issue
Benchmark Results
Not run yet.