Function
projectPolygonOntoAxis
The polygon's vertices.
The axis to project onto. Need not be normalized.
The minimum and maximum positions along the axis.
Flatten a polygon onto an axis and return the span it covers there. This is the building block of the separating-axis test in hasSeparatingAxisForPolygons.
projectPolygonOntoAxis