亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? vhtransform.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
     * efficient (non-iterative) inverse for this program! (i.e. a     * program to compute lat & long from V & H).     */    /** lat and lon are in degrees, positive north and east. */    public void toVH(double lat, double lon) {        lat = radians(lat);        lon = radians(lon);        /* Translate east by 52 degrees */        double lon1 = lon + radians(52.0);        /* Convert latitude to geocentric latitude using Horner's rule */        double latsq = lat * lat;        double lat1 = lat                * (K1 + (K2 + (K3 + (K4 + K5 * latsq) * latsq) * latsq) * latsq);        /*         * x, y, and z are the spherical coordinates corresponding to         * lat, lon.         */        double cos_lat1 = Math.cos(lat1);        double x = cos_lat1 * Math.sin(-lon1);        double y = cos_lat1 * Math.cos(-lon1);        double z = Math.sin(lat1);        /*         * e and w are the cosine of the angular distance (radians)         * between our point and the east and west centers.         */        double e = EX * x + EY * y + EZ * z;        double w = WX * x + WY * y + WZ * z;        e = e > 1.0 ? 1.0 : e;        w = w > 1.0 ? 1.0 : w;        e = M_PI_2 - Math.atan(e / Math.sqrt(1 - e * e));        w = M_PI_2 - Math.atan(w / Math.sqrt(1 - w * w));        /* e and w are now in radians. */        double ht = (e * e - w * w + .16) / .8;        double vt = Math.sqrt(Math.abs(e * e - ht * ht));        vt = (PX * x + PY * y + PZ * z) < 0 ? -vt : vt;        /* rotate and translate to get final v and h. */        double v = TRANSV + K9 * ht - K10 * vt;        double h = TRANSH + K10 * ht + K9 * vt;        this.resultV = v;        this.resultH = h;    }    /*     * Stu Jeffery Internet: stu@shell.portal.com 1072 Seena Ave.     * voice: 415-966-8199 Los Altos, CA. 94024 fax: 415-966-8456     * ////// Subject: V & H to Latitude and Longitude From:     * sicherman@lucent.com (Col. G.L. Sicherman) Date: 1997/03/05     * Message-ID: <telecom17.57.10@massis.lcs.mit.edu> Newsgroups:     * comp.dcom.telecom [More Headers] [Subscribe to     * comp.dcom.telecom]     *      *      * Recently I wanted to convert some Bell Labs "V&H" coordinates     * to latitude and longitude. A careful search through the     * Telecomm- unications Archives turned up a C program for     * converting in the other direction, and many pleas for what I     * was looking for. One poster even offered money!     *      * Since I work for Bell Labs, I had no trouble getting a copy of     * Erik Grimmelmann's legendary memorandum. (Don't get your hopes     * up - Bell Labs has no intention of releasing it to the public!)     * Thus armed, I hacked up the following C program, which ought to     * compile on any C platform. Its input and output agree with the     * output and input of ll_to_vh (as hacked by Tom Libert), and the     * comments summarize the math as explained by Grimmelmann. Enjoy!     */    /**     * V&H is a system of coordinates (V and H) for describing     * locations of rate centers in the United States. The projection,     * devised by J. K. Donald, is an "elliptical," or "doubly     * equidistant" projection, scaled down by a factor of 0.003 to     * balance errors.     * <P>     *      * The foci of the projection, from which distances are measured     * accurately (except for the scale correction), are at 37d 42m     * 14.69s N, 82d 39m 15.27s W (in Floyd Co., Ky.) and 41d 02m     * 55.53s N, 112d 03m 39.35 W (in Webster Co., Utah). They are     * just 0.4 radians apart.     * <P>     *      * Here is the transformation from latitude and longitude to V&H:     * First project the earth from its ellipsoidal surface to a     * sphere. This alters the latitude; the coefficients bi in the     * program are the coefficients of the polynomial approximation     * for the inverse transformation. (The function is odd, so the     * coefficients are for the linear term, the cubic term, and so     * on.) Also subtract 52 degrees from the longitude.     * <P>     *      * For the rest, compute the arc distances of the given point to     * the reference points, and transform them to the coordinate     * system in which the line through the reference points is the     * X-axis and the origin is the eastern reference point. The     * solution is     * <P>     * h = (square of distance to E - square of distance to W + square     * of distance between E and W) / twice distance between E and W;     * <BR>     * v = square root of absolute value of (square of distance to E -     * square of h).     * <P>     * Reduce by three-tenths of a percent, rotate by 76.597497     * degrees, and add 6363.235 to V and 2250.7 to H.     * <P>     *      * To go the other way, as this program does, undo the final     * translation, rotation, and scaling. The z-value Pz of the point     * on the x-y-z sphere satisfies the quadratic Azz+Bz+c=0, where     * <P>     * A = (ExWz-EzWx)^2 + (EyWzx-EzWy)^2 + (ExWy-EyWx)^2; <BR>     * B = -2[(Ex cos(arc to W) - Wx cos(arc to E))(ExWz-EzWx) - (Ey     * cos(arc to W) -Wy cos(arc to E))(EyWz-EzWy)]; <BR>     * C = (Ex cos(arc to W) - Wx cos(arc to E))^2 + (Ey cos(arc to W) -     * Wy cos(arc to E))^2 - (ExWy - EyWx)^2.     * <P>     * Solve with the quadratic formula. The latitude is simply the     * arc sine of Pz. Px and Py satisfy     * <P>     * ExPx + EyPy + EzPz = cos(arc to E); <BR>     * WxPx + WyPy + WzPz = cos(arc to W).     * <P>     * Substitute Pz's value, and solve linearly to get Px and Py. The     * longitude is the arc tangent of Px/Py. Finally, this latitude     * and longitude are spherical; use the inverse polynomial     * approximation on the latitude to get the ellipsoidal earth     * latitude, and add 52 degrees to the longitude.     */    public void toLatLon(double v0, double h0) {        /* GX = ExWz - EzWx; GY = EyWz - EzWy */        final double GX = 0.216507961908834992;        final double GY = -0.134633014879368199;        /* A = (ExWz-EzWx)^2 + (EyWz-EzWy)^2 + (ExWy-EyWx)^2 */        final double A = 0.151646645621077297;        /* Q = ExWy-EyWx; Q2 = Q*Q */        final double Q = -0.294355056616412800;        final double Q2 = 0.0866448993556515751;        final double EPSILON = .0000001;        double v = (double) v0;        double h = (double) h0;        double t1 = (v - TRANSV) / RADIUS;        double t2 = (h - TRANSH) / RADIUS;        double vhat = ROTC * t2 - ROTS * t1;        double hhat = ROTS * t2 + ROTC * t1;        double e = Math.cos(Math.sqrt(vhat * vhat + hhat * hhat));        double w = Math.cos(Math.sqrt(vhat * vhat + (hhat - 0.4) * (hhat - 0.4)));        double fx = EY * w - WY * e;        double fy = EX * w - WX * e;        double b = fx * GX + fy * GY;        double c = fx * fx + fy * fy - Q2;        double disc = b * b - A * c; /* discriminant */        double x, y, z, delta;        if (Math.abs(disc) < EPSILON) {            //      if (disc==0.0) { /* It's right on the E-W axis */            z = b / A;            x = (GX * z - fx) / Q;            y = (fy - GY * z) / Q;        } else {            delta = Math.sqrt(disc);            z = (b + delta) / A;            x = (GX * z - fx) / Q;            y = (fy - GY * z) / Q;            if (vhat * (PX * x + PY * y + PZ * z) < 0) { /*                                                          * wrong                                                          * direction                                                          */                z = (b - delta) / A;                x = (GX * z - fx) / Q;                y = (fy - GY * z) / Q;            }        }        double lat = Math.asin(z);        /*         * Use polynomial approximation for inverse mapping (sphere to         * spheroid):         */        final double[] bi = { 1.00567724920722457, -0.00344230425560210245,                0.000713971534527667990, -0.0000777240053499279217,                0.00000673180367053244284, -0.000000742595338885741395,                0.0000000905058919926194134 };        double lat2 = lat * lat;        /*         * KRA: Didn't seem to work at first, so i unrolled it. double         * earthlat = 0.0; for (int i=6; i>=0; i--) { earthlat =         * (earthlat + bi[i]) * (i > 0? lat2 : lat); }         */        double earthlat = lat                * (bi[0] + lat2                        * (bi[1] + lat2                                * (bi[2] + lat2                                        * (bi[3] + lat2                                                * (bi[4] + lat2                                                        * (bi[5] + lat2                                                                * (bi[6])))))));        earthlat = degrees(earthlat);        /*         * Adjust longitude by 52 degrees:         */        double lon = degrees(Math.atan2(x, y));        double earthlon = lon + 52.0;        this.resultLat = earthlat;        this.resultLon = -earthlon;        // Col. G. L. Sicherman.    }    public void toLatLon(int v0, int h0) {        toLatLon((double) v0, (double) h0);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品国产91久久久| 色呦呦国产精品| 国产精品欧美一级免费| av不卡免费电影| 亚洲综合久久久久| 欧美日本精品一区二区三区| 日韩va亚洲va欧美va久久| 久久亚洲精品国产精品紫薇| 国产成人8x视频一区二区| 亚洲欧美在线视频观看| 欧美性生活影院| 免费日韩伦理电影| 久久久国产精品麻豆| 成人理论电影网| 亚洲一级二级三级在线免费观看| 91.com在线观看| 国产一区美女在线| 中文字幕一区二区三| 欧美亚洲国产一区二区三区va| 日韩成人午夜精品| 久久久久国产一区二区三区四区| 91香蕉视频污| 日韩成人一级大片| 国产精品欧美久久久久无广告| 国产精品伦理一区二区| 一区二区三区在线看| 午夜精品国产更新| 91亚洲精品乱码久久久久久蜜桃| 一区二区三区久久久| 欧美一区二区三区思思人| 激情综合色综合久久综合| 亚洲欧洲无码一区二区三区| 欧美日韩一区二区在线视频| 国产毛片精品视频| 亚洲一区二区黄色| 国产午夜精品一区二区三区嫩草| 色悠久久久久综合欧美99| 免费成人在线观看视频| 亚洲欧美偷拍另类a∨色屁股| 欧美一区二区网站| 本田岬高潮一区二区三区| 日韩高清在线电影| 亚洲国产精品成人综合色在线婷婷| 欧美亚洲国产bt| 国产麻豆日韩欧美久久| 亚洲一区成人在线| 国产欧美精品国产国产专区 | 午夜天堂影视香蕉久久| 久久精品在线观看| 欧美日韩免费观看一区三区| 成人性生交大合| 免费在线视频一区| 亚洲日本电影在线| 2欧美一区二区三区在线观看视频| 色综合夜色一区| 国产一区二区久久| 婷婷夜色潮精品综合在线| 中文字幕一区二区三区乱码在线| 日韩视频一区二区三区在线播放| 91丝袜呻吟高潮美腿白嫩在线观看| 六月丁香婷婷久久| 亚洲v日本v欧美v久久精品| 国产精品欧美综合在线| 2022国产精品视频| 91精品久久久久久蜜臀| 99国产欧美另类久久久精品| 国产永久精品大片wwwapp| 日韩av在线发布| 亚洲一区在线看| 亚洲三级久久久| 中文子幕无线码一区tr| 精品国产一区二区三区四区四| 精品视频一区二区不卡| 99re这里只有精品首页| 福利一区福利二区| 国产一区二区在线免费观看| 天堂久久一区二区三区| 亚洲精品成人悠悠色影视| 国产精品美女一区二区三区| 精品处破学生在线二十三| 欧美一区二区美女| 欧美久久高跟鞋激| 欧美日韩国产综合一区二区三区| 91色在线porny| av亚洲精华国产精华| 成人性色生活片免费看爆迷你毛片| 韩国av一区二区三区在线观看| 日本不卡中文字幕| 中文字幕中文字幕一区| 日韩视频一区在线观看| 制服丝袜中文字幕亚洲| 欧美日本乱大交xxxxx| 欧美日韩在线亚洲一区蜜芽| 日本高清视频一区二区| 色婷婷综合久久| 日本韩国一区二区| 在线免费精品视频| 欧美亚洲国产一区二区三区 | 日韩一卡二卡三卡国产欧美| 欧美日韩在线播放一区| 欧美性一二三区| 欧美日韩免费电影| 欧美日韩三级一区二区| 欧美日韩精品一区二区三区蜜桃| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 日本黄色一区二区| 欧美视频精品在线| 制服.丝袜.亚洲.中文.综合| 欧美精品tushy高清| 欧美高清激情brazzers| 欧美一区二区视频在线观看2020| 91精品国产综合久久福利软件| 欧美一区二区在线不卡| 欧美mv日韩mv亚洲| 国产视频一区在线观看| 国产精品久久久久久久午夜片 | 亚洲自拍与偷拍| 午夜久久久影院| 免费xxxx性欧美18vr| 激情偷乱视频一区二区三区| 国产精品538一区二区在线| 国产69精品一区二区亚洲孕妇| 国产91精品精华液一区二区三区| 99精品1区2区| 欧美专区亚洲专区| 欧美一区二区黄色| 久久精品亚洲乱码伦伦中文| 国产精品国产三级国产aⅴ入口| 亚洲欧美视频在线观看视频| 亚洲电影第三页| 久久国产精品99久久人人澡| 国产精品资源在线| 91亚洲精品久久久蜜桃网站| 欧美三级一区二区| 精品久久免费看| 国产精品久久久久一区| 亚洲午夜国产一区99re久久| 美女视频免费一区| 国产成人精品aa毛片| 91丨九色丨尤物| 欧美日韩视频一区二区| 久久丝袜美腿综合| 国产精品久久久久久久久动漫| 亚洲日本免费电影| 日韩国产欧美三级| 国产成人一区在线| 色婷婷亚洲综合| 日韩欧美中文字幕精品| 欧美国产精品久久| 亚洲午夜精品在线| 国内精品视频666| 91色porny在线视频| 91精品国产色综合久久ai换脸| 久久久久免费观看| 亚洲精品视频在线观看网站| 图片区日韩欧美亚洲| 国产寡妇亲子伦一区二区| 欧美午夜片在线看| 26uuu另类欧美| 亚洲一区在线观看免费观看电影高清| 久久精品国产亚洲a| 99久久精品国产精品久久| 欧美高清视频一二三区| 欧美国产成人在线| 丝袜美腿亚洲色图| 成人动漫av在线| 欧美一卡二卡在线观看| 国产精品电影院| 久久国产尿小便嘘嘘尿| 色婷婷久久综合| 久久久久亚洲蜜桃| 无码av免费一区二区三区试看| 国产成人在线电影| av激情成人网| 欧美影视一区二区三区| 久久亚洲影视婷婷| 午夜精品一区二区三区免费视频 | 91精品国产综合久久久久| 国产蜜臀av在线一区二区三区| 亚洲电影激情视频网站| 成人免费观看av| 日韩三级视频中文字幕| 亚洲老司机在线| 国产成人在线观看| 日韩午夜激情av| 亚洲国产成人精品视频| 波多野结衣中文字幕一区二区三区| 日韩一级黄色片| 亚洲卡通欧美制服中文| 国产成人在线视频网址| 日韩欧美不卡在线观看视频| 亚洲精品一二三区| 成人午夜免费视频| 26uuu另类欧美亚洲曰本| 丝袜亚洲另类丝袜在线| 91极品美女在线| 亚洲国产高清aⅴ视频| 蜜桃视频在线观看一区| 欧美日韩在线亚洲一区蜜芽| 亚洲婷婷国产精品电影人久久|