public override PJ Init() { if(Math.Abs(Math.Abs(phi0)-Proj.HALFPI)<=EPS10) mode=phi0<0.0?ortho_mode.S_POLE:ortho_mode.N_POLE; else if(Math.Abs(phi0)>EPS10) { mode=ortho_mode.OBLIQ; sinph0=Math.Sin(phi0); cosph0=Math.Cos(phi0); } else mode=ortho_mode.EQUIT; inv=s_inverse; fwd=s_forward; es=0.0; return this; }
public override PJ Init() { if (Math.Abs(Math.Abs(phi0) - Proj.HALFPI) <= EPS10) { mode = phi0 < 0.0?ortho_mode.S_POLE:ortho_mode.N_POLE; } else if (Math.Abs(phi0) > EPS10) { mode = ortho_mode.OBLIQ; sinph0 = Math.Sin(phi0); cosph0 = Math.Cos(phi0); } else { mode = ortho_mode.EQUIT; } inv = s_inverse; fwd = s_forward; es = 0.0; return(this); }