public override PJ Init() { LP lp=new LP(); lp.lam=0; lp.phi=d4044118; XY xy1; XY xy3; try { // sinusoidal zones pj[3-1]=new PJ_sinu(); pj[3-1].Init(); if(!SETUP(3, new PJ_sinu(), -d100, 0, -d100)) return null; if(!SETUP(4, new PJ_sinu(), d30, 0, d30)) return null; if(!SETUP(5, new PJ_sinu(), -d160, 0, -d160)) return null; if(!SETUP(6, new PJ_sinu(), -d60, 0, -d60)) return null; if(!SETUP(7, new PJ_sinu(), d20, 0, d20)) return null; if(!SETUP(8, new PJ_sinu(), d140, 0, d140)) return null; // mollweide zones if(!SETUP(1, new PJ_moll(), -d100, 0, -d100)) return null; // y0 ? xy1=pj[0].fwd(lp); // zone 1 xy3=pj[2].fwd(lp); // zone 3 // y0 + xy1.y = xy3.y for lt = 40d44'11.8" dy0=xy3.y-xy1.y; pj[0].y0=dy0; // mollweide zones (cont'd) if(!SETUP(2, new PJ_moll(), d30, dy0, d30)) return null; if(!SETUP(9, new PJ_moll(), -d160, -dy0, -d160)) return null; if(!SETUP(10, new PJ_moll(), -d60, -dy0, -d60)) return null; if(!SETUP(11, new PJ_moll(), d20, -dy0, d20)) return null; if(!SETUP(12, new PJ_moll(), d140, -dy0, d140)) return null; } catch { return null; } inv=s_inverse; fwd=s_forward; es=0.0; return this; }
public override PJ Init() { LP lp = new LP(); lp.lam = 0; lp.phi = d4044118; XY xy1; XY xy3; try { // sinusoidal zones pj[3 - 1] = new PJ_sinu(); pj[3 - 1].Init(); if (!SETUP(3, new PJ_sinu(), -d100, 0, -d100)) { return(null); } if (!SETUP(4, new PJ_sinu(), d30, 0, d30)) { return(null); } if (!SETUP(5, new PJ_sinu(), -d160, 0, -d160)) { return(null); } if (!SETUP(6, new PJ_sinu(), -d60, 0, -d60)) { return(null); } if (!SETUP(7, new PJ_sinu(), d20, 0, d20)) { return(null); } if (!SETUP(8, new PJ_sinu(), d140, 0, d140)) { return(null); } // mollweide zones if (!SETUP(1, new PJ_moll(), -d100, 0, -d100)) { return(null); } // y0 ? xy1 = pj[0].fwd(lp); // zone 1 xy3 = pj[2].fwd(lp); // zone 3 // y0 + xy1.y = xy3.y for lt = 40d44'11.8" dy0 = xy3.y - xy1.y; pj[0].y0 = dy0; // mollweide zones (cont'd) if (!SETUP(2, new PJ_moll(), d30, dy0, d30)) { return(null); } if (!SETUP(9, new PJ_moll(), -d160, -dy0, -d160)) { return(null); } if (!SETUP(10, new PJ_moll(), -d60, -dy0, -d60)) { return(null); } if (!SETUP(11, new PJ_moll(), d20, -dy0, d20)) { return(null); } if (!SETUP(12, new PJ_moll(), d140, -dy0, d140)) { return(null); } } catch { return(null); } inv = s_inverse; fwd = s_forward; es = 0.0; return(this); }