- trimAngleMinusPiToPi
- computeAngleDifferenceMinusPiToPi
computeAngleDifferenceMinusPiToPi: returns (angleA - angleB), where the return
value is [-pi, pi)
- calculateHeading
Returns an angle between two points + heading Offset from -PI to PI. If the x or
y components are bo
- angleMinusPiToPi
- computeAngleAverage
Formula found on Wikipedia
[https://en.wikipedia.org/wiki/Mean_of_circular_quantities].
- findClosestNinetyDegreeYaw
Finds the closest 90 degree yaw and returns number of 90 degrees (0 = 0; 1 = 90;
2 = 180; 3 = 270).
- shiftAngleToStartOfRange
This will shift an angle to be in the range [startOfAngleRange, (
startOfAngleRange + endOfAngleRang
- interpolateAngle
- angleFromZeroToTwoPi
Pass in a vector. Get its angle in polar coordinates.
- computeAngleDifferenceMinusTwoPiToZero
computeAngleDifferenceMinusPiToPi: returns (angleA - angleB), where the return
value is [-2.0*pi, 0.
- generateArrayOfTestAngles
Returns array of angles increasing from -2PI to 2PI
- generateRandomAngle
Returns an evenly distributed random number between -2PI and 2PI