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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? intersection.java

?? openmap java寫(xiě)的開(kāi)源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/** *                     RESTRICTED RIGHTS LEGEND * *                        BBNT Solutions LLC *                        A Verizon Company *                        10 Moulton Street *                       Cambridge, MA 02138 *                         (617) 873-3000 * * Copyright BBNT Solutions LLC 2001, 2002 All Rights Reserved * */package com.bbn.openmap.geo;import java.util.Collection;import java.util.Iterator;import java.util.LinkedList;import java.util.List;/** * Contains great circle intersection algorithms and helper methods. * Sources: http://williams.best.vwh.net/intersect.htm * http://mathforum.org/library/drmath/view/60711.html * <P> * The Intersection class has been updated to manage query * intersections of GeoExtents over other GeoExtents. MatchCollectors * and MatchFilters can be used to help optimize the search and manage * the results. *  * @author Sachin Date * @author Ken Anderson * @version $Revision: 1.4.2.8 $ on $Date: 2005/12/09 20:58:47 $ */public class Intersection {    protected final MatchFilter filter;    protected final MatchCollector collector;    /**     * Create an Intersection class that will use the provided     * MatchFilter and MatchCollector.     *      * @param filter     * @param collector     */    public Intersection(MatchFilter filter, MatchCollector collector) {        this.filter = filter;        this.collector = collector;    }    /**     * Create an Intersection class that will use the     * MatchFilter.MatchParameters class with STRICT settings, and a     * MatchCollector.SetMatchCollector.     */    public static Intersection intersector() {        return new Intersection(new MatchFilter.MatchParametersMF(MatchParameters.STRICT), new MatchCollector.SetMatchCollector());    }    /**     * Create an Intersection class that will use the     * MatchFilter.MatchParameters class with provided settings, and a     * MatchCollector.SetMatchCollector.     */    public static Intersection intersector(MatchParameters params) {        return new Intersection(new MatchFilter.MatchParametersMF(params), new MatchCollector.SetMatchCollector());    }    /**     * Create an Intersection class that will use the     * MatchFilter.MatchParameters class with provided settings, and a     * MatchCollector.CollectionMatchCollector with the provided     * collector.     */    public static Intersection intersector(MatchParameters params,                                           final Collection c) {        return new Intersection(new MatchFilter.MatchParametersMF(params), new MatchCollector.CollectionMatchCollector(c));    }    /**     * Create an Intersection class that will use the provided     * MatchFilter class and the provided MatchCollector.     */    public static Intersection intersector(MatchFilter filter,                                           MatchCollector collector) {        return new Intersection(filter, collector);    }    /**     * Asks the Intersection class to calcuate the relationships     * between object a and b. Calls the other consider methods,     * depending on what a and b are. Consult the MatchCollector for     * the results.     *      * @param a A GeoExtent object, generally.     * @param b A ExtentImpl object or GeoExtent object, generally.     */    public void consider(Object a, Object b) {        if (b instanceof Collection) {            if (a instanceof GeoRegion) {                considerRegionXRegions((GeoRegion) a, (Collection) b);            } else if (a instanceof GeoPath) {                considerPathXRegions((GeoPath) a, (Collection) b);            } else if (a instanceof GeoPoint) {                considerPointXRegions((GeoPoint) a, (Collection) b);            }        } else if (b instanceof GeoRegion) {            if (a instanceof GeoRegion) {                considerRegionXRegion((GeoRegion) a, (GeoRegion) b);            } else if (a instanceof GeoPath) {                considerPathXRegion((GeoPath) a, (GeoRegion) b);            } else if (a instanceof GeoPoint) {                considerPointXRegion((GeoPoint) a, (GeoRegion) b);            }        }    }    public void considerRegionXRegions(GeoRegion r, Collection regions) {        /*         * since the path is closed we'll check the region index for         * the whole thing instead of segment-by-segment         */        Iterator possibles;        if (regions instanceof ExtentIndex) {            // if we've got an index, narrow the set down            possibles = ((ExtentIndex) regions).iterator(r);        } else {            possibles = regions.iterator();        }        while (possibles.hasNext()) {            GeoExtent extent = (GeoExtent) possibles.next();            if (extent instanceof GeoRegion) {                considerRegionXRegion(r, (GeoRegion) extent);            } else if (extent instanceof GeoPath) {              // This body used to be the following:              //   considerPathXRegion((GeoPath) extent, r);              // but this reverses the match order and leads to "r" getting collected              // instead of extent.  I've inlined the essential body and left it here              for (GeoPath.SegmentIterator pit = ((GeoPath)extent).segmentIterator(); pit.hasNext();) {                GeoSegment seg = pit.nextSegment();                if (filter.preConsider(seg, r)                    && considerSegmentXRegion(seg, r)) {                  collector.collect(seg, extent);                }              }            } else {                BoundingCircle bc = extent.getBoundingCircle();                BoundingCircle rbc = r.getBoundingCircle();                if (rbc.intersects(bc.getCenter(), bc.getRadius()                        + filter.getHRange())) {                    collector.collect(r, extent);                }            }        }    }    public void considerRegionXRegion(GeoRegion r, GeoRegion region) {        /* these must be cheap! */        Geo[] regionBoundary = r.toPointArray();        /* get the first path point */        Geo pathPoint = regionBoundary[0];        Geo[] rboundary = region.toPointArray();        // check for total containment        if ((rboundary != null && (Intersection.isPointInPolygon(pathPoint,                rboundary) || Intersection.isPointInPolygon(rboundary[0],                regionBoundary)))                || (rboundary == null && (region.isPointInside(pathPoint) ||                /* first path point is inside the region? */                Intersection.isPointInPolygon(region.getBoundingCircle()                        .getCenter(), regionBoundary)))) {            collector.collect(r, region);        } else {            // gotta try harder, so we fall back to segment-by-segment            // intersections            for (GeoPath.SegmentIterator pit = r.segmentIterator(); pit.hasNext();) {                GeoSegment seg = pit.nextSegment();                if (filter.preConsider(seg, region)                        && considerSegmentXRegion(seg, region)) {                    collector.collect(seg, region);                    // For the default implementation, we just care                    // about first hit.                    return;                }            }        }    }    public void considerPathXRegions(GeoPath path, Collection regions) {        /*         * Since the path is open, then our best bet is to check each         * segment separately         */        for (GeoPath.SegmentIterator pit = path.segmentIterator(); pit.hasNext();) {            GeoSegment seg = pit.nextSegment();            Iterator rit;            if (regions instanceof ExtentIndex) {                rit = ((ExtentIndex) regions).iterator(seg);            } else {                rit = regions.iterator();            }            while (rit.hasNext()) {                GeoExtent extent = (GeoExtent) rit.next();                if (filter.preConsider(path, extent)) {                    if (extent instanceof GeoRegion) {                        GeoRegion region = (GeoRegion) extent;                        if (considerSegmentXRegion(seg, region)) {                            collector.collect(seg, region);                        }                    } else if (extent instanceof GeoPath) {                        GeoPath p = (GeoPath) extent;                        if (isSegmentNearPoly(seg,                                p.toPointArray(),                                filter.getHRange()) != null) {                            collector.collect(seg, p);                        }                    } else {                        BoundingCircle bc = extent.getBoundingCircle();                        if (isSegmentNearRadialRegion(seg,                                bc.getCenter(),                                bc.getRadius(),                                filter.getHRange())) {                            collector.collect(seg, extent);                        }                    }                }            }        }    }    public void considerPathXRegion(GeoPath path, GeoRegion region) {        for (GeoPath.SegmentIterator pit = path.segmentIterator(); pit.hasNext();) {            GeoSegment seg = pit.nextSegment();            if (filter.preConsider(seg, region)                    && considerSegmentXRegion(seg, region)) {                collector.collect(seg, region);                // For the default implementation, we just care about                // the first contact.                return;            }        }    }    public boolean considerSegmentXRegion(GeoSegment seg, GeoRegion region) {        return region.isSegmentNear(seg, filter.getHRange());    }    public void considerPointXRegions(GeoPoint p, Collection regions) {        Iterator rit;        if (regions instanceof ExtentIndex) {            rit = ((ExtentIndex) regions).iterator(p);        } else {            rit = regions.iterator();        }        while (rit.hasNext()) {            GeoExtent extent = (GeoExtent) rit.next();            if (filter.preConsider(p, extent)) {                if (extent instanceof GeoRegion) {                    GeoRegion region = (GeoRegion) extent;                    if (considerPointXRegion(p, region)) {                        collector.collect(p, region);                    }                } else if (extent instanceof GeoPath) {                    GeoPath path = (GeoPath) extent;                    if (isPointNearPoly(p.getPoint(),                            path.toPointArray(),                            filter.getHRange())) {                        collector.collect(p, path);                    }                } else {                    BoundingCircle bc = extent.getBoundingCircle();                    if (p.getPoint().distance(bc.getCenter()) <= bc.getRadius()                            + filter.getHRange()) {                        collector.collect(p, extent);                    }                }            }        }    }    public boolean considerPointXRegion(GeoPoint p, GeoRegion region) {        return isPointInPolygon(p.getPoint(), region.toPointArray());    }    //    // Static versions of intersection methods    //    /**     * Simplified version of #intersect(Path, Collection, Algorithm)     * for old code, using the default match algorithm, and returning     * the identifiers of the regions that intersect with the path.     *      * @param path     * @param regions     * @return a list of the identifiers of the intersecting regions.     */    public static Iterator intersect(Object path, Object regions) {        MatchCollector.SetMatchCollector c = new MatchCollector.SetMatchCollector();        Intersection ix = new Intersection(new MatchFilter.MatchParametersMF(MatchParameters.STRICT), c);        ix.consider(path, regions);        return c.iterator();    }    //    // Utility methods (The Mathematics)    //    /**     * Returns the two antipodal points of interection of two great     * circles defined by the arcs (lat1, lon1) to (lat2, lon2) and     * (lat2, lon2) to (lat4, lon4). All lat-lon values are in     * degrees.     *      * @return an array of two lat-lon points arranged as lat, lon,     *         lat, lon     */    public static float[] getIntersection(float lat1, float lon1, float lat2,                                          float lon2, float lat3, float lon3,                                          float lat4, float lon4) {        Geo geoCross1 = (new Geo(lat1, lon1)).crossNormalize(new Geo(lat2, lon2));        Geo geoCross2 = (new Geo(lat3, lon3)).crossNormalize(new Geo(lat4, lon4));        Geo geo = geoCross1.crossNormalize(geoCross2);        Geo anti = geo.antipode();        return new float[] { ((float) geo.getLatitude()),

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av片在线观看| 欧美视频日韩视频| 亚洲chinese男男1069| 久久婷婷综合激情| 欧美图片一区二区三区| 成人一区在线看| 久久99精品一区二区三区三区| 亚洲欧洲中文日韩久久av乱码| 欧美mv日韩mv国产| 欧美日精品一区视频| av资源站一区| 国产又粗又猛又爽又黄91精品| 午夜精品视频在线观看| 一区二区日韩av| 综合婷婷亚洲小说| 欧美国产亚洲另类动漫| 精品电影一区二区| 欧美一级日韩免费不卡| 欧美日韩一区三区四区| 色婷婷精品大在线视频| 成人午夜电影久久影院| 亚洲综合丝袜美腿| 久久综合狠狠综合| 日韩视频在线你懂得| 欧美肥妇bbw| 欧美三级欧美一级| 欧美三级欧美一级| 欧美视频一区二区在线观看| 91视视频在线直接观看在线看网页在线看| 国产综合色在线| 精品在线观看视频| 久久精品噜噜噜成人88aⅴ| 日韩电影在线观看网站| 日韩一区精品视频| 日本不卡中文字幕| 麻豆国产欧美一区二区三区| 日韩精品91亚洲二区在线观看| 亚洲综合成人在线视频| 亚洲国产毛片aaaaa无费看| 一区二区三区久久| 亚洲综合在线免费观看| 亚洲制服丝袜一区| 亚洲国产一区视频| 三级成人在线视频| 美女尤物国产一区| 精品一区中文字幕| 国产精品一二三区在线| 国产成人精品亚洲午夜麻豆| 国产成人三级在线观看| 成人综合婷婷国产精品久久 | 91国产丝袜在线播放| 91国产丝袜在线播放| 欧美日韩视频在线观看一区二区三区 | 1000精品久久久久久久久| 中文字幕亚洲不卡| 亚洲一二三四区不卡| 丝袜美腿亚洲综合| 国产一区二区三区久久久| 国产成人精品影院| 色8久久人人97超碰香蕉987| 欧美日韩国产美| 欧美大度的电影原声| 国产亚洲一区二区三区四区 | 国产欧美精品国产国产专区| 日本一区二区免费在线观看视频| 亚洲天堂久久久久久久| 一区二区日韩电影| 黄色精品一二区| 97久久超碰精品国产| 欧美日韩国产高清一区| 久久婷婷久久一区二区三区| √…a在线天堂一区| 天天影视色香欲综合网老头| 久久99蜜桃精品| 91丨porny丨首页| 91精品国产色综合久久不卡电影 | 黄页网站大全一区二区| 91无套直看片红桃| 91精品国产综合久久久蜜臀粉嫩| 久久精品在线观看| 亚洲国产日产av| 精品一区免费av| 色又黄又爽网站www久久| 91精品久久久久久久91蜜桃| 国产精品乱子久久久久| 日韩和欧美一区二区| 成人免费精品视频| 欧美一区二区视频在线观看| 亚洲国产成人一区二区三区| 午夜免费久久看| 成人一道本在线| 91精品国产一区二区三区 | 中文字幕一区免费在线观看 | 色琪琪一区二区三区亚洲区| 日韩久久久精品| 一区二区三区中文字幕电影 | 亚洲日本va午夜在线影院| 日韩不卡一二三区| 97久久精品人人澡人人爽| 精品国产电影一区二区| 亚洲国产欧美在线| aaa欧美色吧激情视频| 欧美成人精品福利| 亚洲成在人线在线播放| 一本到不卡精品视频在线观看 | 日日摸夜夜添夜夜添精品视频 | 日本不卡免费在线视频| 91看片淫黄大片一级在线观看| 精品久久久影院| 蜜臀久久久久久久| 欧美三级资源在线| 亚洲免费在线播放| 成人aa视频在线观看| 久久女同性恋中文字幕| 美女网站一区二区| 欧美日本高清视频在线观看| 亚洲老妇xxxxxx| 99精品在线观看视频| 国产视频一区二区在线观看| 久久99精品久久久久久| 日韩欧美的一区二区| 视频在线在亚洲| 欧美图区在线视频| 亚洲第一成年网| 欧美视频中文一区二区三区在线观看| 亚洲欧洲无码一区二区三区| 粉嫩嫩av羞羞动漫久久久| 久久免费偷拍视频| 国产精品一区二区视频| 国产午夜精品福利| 国产成人精品影视| 国产精品免费丝袜| 成人午夜在线视频| 中文字幕制服丝袜一区二区三区| 成人高清在线视频| 国产精品理论在线观看| av电影在线不卡| 亚洲伦理在线免费看| 在线精品观看国产| 午夜久久福利影院| 欧美一区二区三区小说| 美女网站色91| 久久久亚洲国产美女国产盗摄| 韩国理伦片一区二区三区在线播放| 欧美精品一区二区三区高清aⅴ| 久国产精品韩国三级视频| 欧美精品一区二区蜜臀亚洲| 国产一区二区三区综合| 国产欧美日韩麻豆91| 91香蕉视频mp4| 亚洲成人午夜影院| 精品国产一区a| 福利一区二区在线| 亚洲女人****多毛耸耸8| 欧美日韩日日骚| 久久福利视频一区二区| 中文字幕精品一区二区精品绿巨人 | 色哟哟欧美精品| 亚洲成人av中文| 91精品国产高清一区二区三区 | 91视视频在线直接观看在线看网页在线看 | 国产一区日韩二区欧美三区| 中文字幕第一区二区| 色婷婷一区二区| 日韩成人一级片| 欧美国产欧美综合| 在线亚洲一区二区| 美女网站一区二区| 国产精品九色蝌蚪自拍| 欧美日韩一级视频| 国产激情视频一区二区在线观看 | 国产呦精品一区二区三区网站| 欧美韩日一区二区三区四区| 在线观看亚洲精品视频| 看国产成人h片视频| 国产精品国产三级国产普通话蜜臀| 欧洲中文字幕精品| 国产一区二区视频在线| 亚洲制服丝袜在线| 国产欧美日韩一区二区三区在线观看| 色悠久久久久综合欧美99| 精品一区免费av| 一区二区欧美视频| 国产日韩综合av| 欧美精品欧美精品系列| 丁香婷婷综合网| 日本系列欧美系列| 亚洲伦理在线免费看| 久久久亚洲午夜电影| 欧美日韩国产成人在线免费| bt欧美亚洲午夜电影天堂| 久久er99精品| 亚洲成人av一区二区三区| 国产精品久久久久久久久免费丝袜 | 亚洲免费资源在线播放| 国产午夜精品一区二区三区嫩草 | 秋霞午夜av一区二区三区| 亚洲婷婷在线视频| 久久免费的精品国产v∧| 制服视频三区第一页精品|