示例#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);
 }