matchparameters.java

来自「openmap java写的开源数字地图程序. 用applet实现,可以像g」· Java 代码 · 共 53 行

JAVA
53
字号
/* *                     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;/** * The terms that describe how matches between Geo objects are to be * performed. */public interface MatchParameters {    /**     * return the horizontal deviation (range) to consider matching.     * The value is in radians. 0.0 implies strict intersection. Note     * that if a RegionIndex is being used, then this value probably     * must be no larger than the index's margin to avoid missing     * regions that are near index boundaries.     */    double horizontalRange();    public class Standard implements MatchParameters {        double hr;        public Standard(double hr) {            this.hr = hr;        }        public double horizontalRange() {            return hr;        }    }    /**     * A set of parameters that matches radius of 10 nmiles.     */    MatchParameters ROUTE_DEFAULT = new Standard(Geo.nmToAngle(10));    /**     * A set of parameters for strict intersections, 0 nmiles.     */    MatchParameters STRICT = new Standard(0.0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?