// Like the approach float function, but rotates current along the shortest path // to the target, like an angle moving along a circle towards a different angle. // This method utilizes both angles' coterminals, so having a rotation // greater than 360 degrees is not feasible without changing the target. public Angle ApproachCoterminal(Angle target, Angle stepSize, bool useShorterPath = true) { degrees = INTERVAL_UNSIGNED_DEGREES.Approach(degrees, target.GetDegrees(), stepSize.GetDegrees(), useShorterPath); return(this); }
// Like the approach float function, but rotates current along the shortest path // to the target, like an angle moving along a circle towards a different angle. public Angle Approach(Angle target, Angle stepSize) { degrees = INTERVAL_UNSIGNED_DEGREES.Approach(degrees, target.GetDegrees(), stepSize.GetDegrees()); return(this); }