/// <summary> /// Project the given x y to lat long using the input lat long class to get the result. /// </summary> public override void InverseProject(CGeoLatLong rLatLong, double dX, double dY) { double dLat = Math.Atan(Math.Sinh(dX)); double dLong = dY + m_dStandardLongitude; rLatLong.SetLat(dLat); rLatLong.SetLong(dLong); }
/// <summary> /// Project the given x y to lat long using the input lat long class to get the result. /// </summary> public override void InverseProject(CGeoLatLong rLatLong, double dX, double dY) { double dLatY = dY; double dLongX = dX; InverseProject(dLatY, dLongX); rLatLong.SetLat(dLatY); rLatLong.SetLong(dLongX); }
/// <summary> /// Project the given x y to lat long using the input lat long class to get the result. /// </summary> public override void InverseProject(CGeoLatLong rLatLong, double dX, double dY) { double dD = dY + m_dStandardLongitude; double dLat = Math.Asin( Math.Sin(dD) * Math.Cos( dX) ); double dLong = m_dStandardLongitude + Math.Atan2( Math.Tan(dX) , Math.Cos(dD)); rLatLong.SetLat(dLat); rLatLong.SetLong(dLong); }
/// <summary> /// Project the given x y to lat long using the input lat long class to get the result. /// </summary> public override void InverseProject(CGeoLatLong rLatLong, double dX, double dY) { double dD = dY + m_dStandardLongitude; double dLat = Math.Asin(Math.Sin(dD) * Math.Cos(dX)); double dLong = m_dStandardLongitude + Math.Atan2(Math.Tan(dX), Math.Cos(dD)); rLatLong.SetLat(dLat); rLatLong.SetLong(dLong); }