Пример #1
0
        /// <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);
        }
Пример #2
0
        /// <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();
        }
Пример #3
0
        /// <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();
        }
Пример #4
0
        /// <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();
        }
Пример #7
0
        /// <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);
        }