示例#1
0
文件: Utils.cs 项目: deb761/BikeMap
 public static double KmPerDegreeAtLatitude(Degree latitude)
 {
     double cos = Math.Cos(latitude * Math.PI / 180.0);
     //double kmPerDegree = RadiusAtLatitude(latitude) * Math.PI / 180;
     double retVal = KmPerDegree * cos;
     return retVal;
 }
示例#2
0
 public void SetLongitudeMaximum(double value)
 {
     _LongitudeMaximum = new Degree(value, Direction.Longitude);
 }
示例#3
0
 public void SetLatitudeMinimum(double value)
 {
     _LatitudeMinimum = new Degree(value, Direction.Latitude);
 }
示例#4
0
 public void SetLongitudeMinimum(decimal value)
 {
     _LongitudeMinimum = new Degree((double)value, Direction.Longitude);
 }
示例#5
0
 public void SetLatitudeMaximum(decimal value)
 {
     _LatitudeMaximum = new Degree((double)value, Direction.Latitude);
 }