Projects corners of a shape onto an axis and returns the min and max projections. Used in the Separating Axis Theorem (SAT).
The axis to project onto.
An array of corner points (vertices) of the shape.
Variable to store minimum projection (overwritten).
Variable to store maximum projection (overwritten).
An array with the min and max projected values.
Projects corners of a shape onto an axis and returns the min and max projections. Used in the Separating Axis Theorem (SAT).