Пример #1
0
 public static ProjectedPoint PolarToRectangular(ProjectedPoint origin, double theta, double r)
 {
     ProjectedPoint result = new ProjectedPoint();
     result.Easting = r * Math.Cos(theta);
     result.Northing = r * Math.Sin(theta);
     result.Easting += origin.Easting;
     result.Northing += origin.Northing;
     return result;
 }
Пример #2
0
        public static ProjectedPoint PolarToRectangular(ProjectedPoint origin, double theta, double r)
        {
            ProjectedPoint result = new ProjectedPoint();

            result.Easting   = r * Math.Cos(theta);
            result.Northing  = r * Math.Sin(theta);
            result.Easting  += origin.Easting;
            result.Northing += origin.Northing;
            return(result);
        }
Пример #3
0
        public ProjectedPoint Project()
        {
            double easting;
            double northing;
            int    zone;

            ProjectToUTM(_latitude.Value, _longitude.Value, out easting, out northing, out zone);
            ProjectedPoint pp = new ProjectedPoint();

            pp.Easting  = easting;
            pp.Northing = northing;
            pp.Zone     = zone;
            pp.Height   = _heightAboveGeoID;
            return(pp);
        }
Пример #4
0
 public static double FindAngleWTF(ProjectedPoint a, ProjectedPoint b)
 {
     return(-Math.Atan2(a.Northing - b.Northing, a.Easting - b.Easting));
 }
Пример #5
0
 public ProjectedPoint Project()
 {
     double easting;
     double northing;
     int zone;
     ProjectToUTM(_latitude.Value, _longitude.Value, out easting, out northing, out zone);
     ProjectedPoint pp = new ProjectedPoint();
     pp.Easting = easting;
     pp.Northing = northing;
     pp.Zone = zone;
     pp.Height = _heightAboveGeoID;
     return pp;
 }
Пример #6
0
 public static double FindAngle(ProjectedPoint a, ProjectedPoint b)
 {
     return -Math.Atan2(a.Easting - b.Easting, a.Northing - b.Northing);
 }