AngleCalculations

A collection of methods for calculations related to angles.

Functions

Link copied to clipboard
fun optimizeAngle(desiredAngle: Double, currentAngle: Double): Double

A function that calculates the which way a wheel should be facing for the least rotation.

Link copied to clipboard
fun wrapAroundAngles(inputAngle: Double): Double

A function that changes an angle range from -180-180 to 0-360.