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; }
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); }
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); }
public static double FindAngleWTF(ProjectedPoint a, ProjectedPoint b) { return(-Math.Atan2(a.Northing - b.Northing, a.Easting - b.Easting)); }
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; }
public static double FindAngle(ProjectedPoint a, ProjectedPoint b) { return -Math.Atan2(a.Easting - b.Easting, a.Northing - b.Northing); }