Exemple #1
0
        public override PJ Init()
        {
            if(Math.Abs(Math.Abs(phi0)-Proj.HALFPI)<EPS10) mode=phi0<0.0?gnom_mode.S_POLE:gnom_mode.N_POLE;
            else if(Math.Abs(phi0)<EPS10) mode=gnom_mode.EQUIT;
            else
            {
                mode=gnom_mode.OBLIQ;
                sinph0=Math.Sin(phi0);
                cosph0=Math.Cos(phi0);
            }

            inv=s_inverse;
            fwd=s_forward;
            es=0.0;

            return this;
        }
Exemple #2
0
        public override PJ Init()
        {
            if (Math.Abs(Math.Abs(phi0) - Proj.HALFPI) < EPS10)
            {
                mode = phi0 < 0.0?gnom_mode.S_POLE:gnom_mode.N_POLE;
            }
            else if (Math.Abs(phi0) < EPS10)
            {
                mode = gnom_mode.EQUIT;
            }
            else
            {
                mode   = gnom_mode.OBLIQ;
                sinph0 = Math.Sin(phi0);
                cosph0 = Math.Cos(phi0);
            }

            inv = s_inverse;
            fwd = s_forward;
            es  = 0.0;

            return(this);
        }