Exemple #1
0
 public static float Normalize(float degrees)
 {
     return(Spectrum.Wrap(degrees, 0f, 360f));
 }
Exemple #2
0
 // Shift degrees to valid ranges.
 public static float Wrap(float radian)
 {
     return(Spectrum.Wrap(radian, (float)Math.PI, (float)Math.PI));
 }
Exemple #3
0
 // Shift degrees to valid ranges.
 public static float Wrap(float degrees)
 {
     return(Spectrum.Wrap(degrees, -180f, 180f));
 }