Example #1
0
 /// <summary>Get angle in degrees, limited to the range [0, 360).</summary>
 public static double InDegrees(this Angle angle)
 {
     return(CanonicalModulo.Compute(angle.DecimalDegrees, 360.0));
 }
Example #2
0
 /// <summary>Get angle in radians, limited to the range [0, 2*PI).</summary>
 public static double InRadians(this Angle angle)
 {
     return(CanonicalModulo.Compute(angle.ToRadians().Value, 2 * Math.PI));
 }
Example #3
0
 /// <summary>Get angle in degrees, limited to the range [0, 360).</summary>
 public static double InDegrees(this Azimuth az)
 {
     return(CanonicalModulo.Compute(az.DecimalDegrees, 360.0));
 }
Example #4
0
 /// <summary>Get angle in radians, limited to the range [0, 2*PI).</summary>
 public static double InRadians(this Azimuth az)
 {
     return(CanonicalModulo.Compute(az.ToRadians().Value, 2 * Math.PI));
 }
Example #5
0
 /// <summary>Get angle in radians, limited to the range [0, 2*PI).</summary>
 public static double InRadians(this Longitude lon)
 {
     return(CanonicalModulo.Compute(lon.ToRadians().Value, 2 * Math.PI));
 }
Example #6
0
 /// <summary>Get angle in degrees, limited to the range [0, 360).</summary>
 public static double InDegrees(this Longitude lon)
 {
     return(CanonicalModulo.Compute(lon.DecimalDegrees, 360.0));
 }
Example #7
0
 /// <summary>Get angle in degrees, limited to the range [0, 360).</summary>
 public static double InDegrees(this Latitude lat)
 {
     return(CanonicalModulo.Compute(lat.DecimalDegrees, 360.0));
 }
Example #8
0
 /// <summary>Get angle in radians, limited to the range [0, 2*PI).</summary>
 public static double InRadians(this Elevation el)
 {
     return(CanonicalModulo.Compute(el.ToRadians().Value, 2 * Math.PI));
 }
Example #9
0
 /// <summary>Get angle in degrees, limited to the range [0, 360).</summary>
 public static double InDegrees(this Elevation el)
 {
     return(CanonicalModulo.Compute(el.DecimalDegrees, 360.0));
 }