3constfloat GOLDEN_RATIO = 1.618033988749895; // limited to 16 places, rounded away from zero
4constfloat INV_GOLDEN_RADIO_RAD = 3.883222077450933; // 2 * Pi / GOLDEN_RATIO limited to 16 places, rounded away from zero
5constfloat PI4 = 12.56637061435917; // 4 * Pi limited to 16 places, rounded away from zero
6constfloat POINT_DIST_SPHERE_EXP = 2.231; // Significantly improves accuracy of spacing predictions. This number was manually goal-searched by optimising for Root Mean Square Error on GetPointOnUnitSphere's results and predictions that use this exponent.
7constfloat INV_POINT_DIST_SPHERE_EXP = 0.4482294935006723; // 1 / 2.231 limited to 16 places, rounded away from zero
36float phi = Math.Acos(1 - 2 * index / amount); // Math.Acos already limits the domain to [-1, 1], which is acceptable. No additional bounds checking is needed.