Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Squared velocity lengths #1291
Computing the square root of a number is expensive. By switching to LengthSqr and Length2DSqr, we skip this square-rooting altogether.
This only works for comparisons like these, since for any two numbers