예제 #1
0
 // 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);
 }
예제 #2
0
 // 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);
 }