/// <summary> /// Project the given lat long to x, y using the input parameters to store the result and retaining /// the lat long in the class passed. /// </summary> public override void Project(CGeoLatLong rLatLong, double dx, double dy) { dy = rLatLong.GetLatDegrees(); dx = rLatLong.GetLongDegrees(); Project(dy, dx); }
/// <summary> /// Inverse rotate. /// </summary> void InverseRotate(double dLatDegrees, double dLongDegrees) { CGeoLatLong rLatLong = new CGeoLatLong(); rLatLong.SetLatDegrees(dLatDegrees); rLatLong.SetLongDegrees(dLongDegrees); InverseRotate(rLatLong); dLatDegrees = rLatLong.GetLatDegrees(); dLongDegrees = rLatLong.GetLongDegrees(); }
/// <summary> /// Inverse rotate. /// </summary> void InverseRotate(double dLatDegrees, double dLongDegrees) { CGeoLatLong rLatLong = new CGeoLatLong(); rLatLong.SetLatDegrees(dLatDegrees); rLatLong.SetLongDegrees(dLongDegrees); InverseRotate(rLatLong); dLatDegrees = rLatLong.GetLatDegrees(); dLongDegrees = rLatLong.GetLongDegrees(); }
/// <summary> /// Project the given x y to lat long using the input parameters to store /// the result. /// </summary> public override void InverseProject(double dLatY, double dLongX) { double dHdng = Math.Atan2(dLongX, dLatY); double dRange = Math.Sqrt(dLongX * dLongX + dLatY * dLatY); CGeoLatLong Result = new CGeoLatLong(); Result.Set(dHdng, dRange, m_Origin); dLatY = Result.GetLatDegrees(); dLongX = Result.GetLongDegrees(); }
/// <summary> /// Project the given x y to lat long using the input parameters to store /// the result. /// </summary> public override void InverseProject(double dLatY, double dLongX) { double dHdng = Math.Atan2(dLongX, dLatY); double dRange = Math.Sqrt(dLongX * dLongX + dLatY * dLatY); CGeoLatLong Result = new CGeoLatLong(); Result.Set(dHdng, dRange, m_Origin); dLatY = Result.GetLatDegrees(); dLongX = Result.GetLongDegrees(); }
/// <summary> /// Project the given x y to lat long using the input parameters to store the result. /// </summary> public override void InverseProject(double dLatY, double dLongX) { double dHdng = Math.Atan2(dLongX, dLatY); double dRange = Math.Sqrt(dLongX * dLongX + dLatY * dLatY); dRange = Math.Asin(dRange / Constants.conEARTH_RADIUS_METRES) * Constants.conEARTH_RADIUS_METRES; CGeoLatLong Result = new CGeoLatLong(); Result.Set(dHdng, dRange, m_Origin); dLatY = Result.GetLatDegrees(); dLongX = Result.GetLongDegrees(); }
/// <summary> /// Project the given x y to lat long using the input parameters to store the result. /// </summary> public override void InverseProject(double dLatY, double dLongX) { double dHdng = Math.Atan2(dLongX, dLatY); double dRange = Math.Sqrt(dLongX * dLongX + dLatY * dLatY); dRange = Math.Asin(dRange / Constants.conEARTH_RADIUS_METRES) * Constants.conEARTH_RADIUS_METRES; CGeoLatLong Result = new CGeoLatLong(); Result.Set(dHdng, dRange, m_Origin); dLatY = Result.GetLatDegrees(); dLongX = Result.GetLongDegrees(); }
/// <summary> /// Project the given lat long to x, y using the input parameters to store the result and retaining /// the lat long in the class passed. /// </summary> public override void Project(CGeoLatLong rLatLong, double dx, double dy) { dy = rLatLong.GetLatDegrees(); dx = rLatLong.GetLongDegrees(); Project(dy, dx); }