Home
last modified time | relevance | path

Searched refs:getDistance (Results 1 – 25 of 59) sorted by relevance

123

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2LatLngRectTest.java296 assertEquals(zero, a.getDistance(a)); in testGetDistanceOverlapping()
297 assertEquals(zero, a.getDistance(b)); in testGetDistanceOverlapping()
298 assertEquals(zero, b.getDistance(b)); in testGetDistanceOverlapping()
299 assertEquals(zero, a.getDistance(S2LatLng.fromDegrees(0, 0))); in testGetDistanceOverlapping()
300 assertEquals(zero, a.getDistance(rectFromDegrees(0, 1, 2, 3))); in testGetDistanceOverlapping()
301 assertEquals(zero, a.getDistance(rectFromDegrees(0, 2, 2, 4))); in testGetDistanceOverlapping()
302 assertEquals(zero, a.getDistance(rectFromDegrees(1, 0, 3, 2))); in testGetDistanceOverlapping()
303 assertEquals(zero, a.getDistance(rectFromDegrees(2, 0, 4, 2))); in testGetDistanceOverlapping()
304 assertEquals(zero, a.getDistance(rectFromDegrees(1, 1, 3, 3))); in testGetDistanceOverlapping()
305 assertEquals(zero, a.getDistance(rectFromDegrees(2, 2, 4, 4))); in testGetDistanceOverlapping()
[all …]
DS2LatLngTest.java78 S2LatLng.fromDegrees(90, 0).getDistance(S2LatLng.fromDegrees(90, 0)).radians(), 0.0); in testDistance()
80 S2LatLng.fromDegrees(-37, 25).getDistance(S2LatLng.fromDegrees(-66, -155)).degrees(), 77, in testDistance()
83 S2LatLng.fromDegrees(0, 165).getDistance(S2LatLng.fromDegrees(0, -80)).degrees(), 115, in testDistance()
86 S2LatLng.fromDegrees(47, -127).getDistance(S2LatLng.fromDegrees(-47, 53)).degrees(), 180, in testDistance()
DS2PolygonTest.java324 assertEquals(0d, shell.getDistance(shell.loop(i).vertex(j)).radians(), epsilon); in testGetDistance()
329 assertEquals(0d, rect.getDistance( in testGetDistance()
335 assertEquals(0d, rect.getDistance(origin).radians(), epsilon); in testGetDistance()
339 assertEquals(1d, shell.getDistance(origin).degrees(), epsilon); in testGetDistance()
DS2LoopTest.java488 assertEquals(0d, s1.getDistance(s1.vertex(i)).radians(), epsilon);
492 assertEquals(0d, s1.getDistance(S2LatLng.fromDegrees(0.5, 1).toPoint()).radians(), epsilon);
500 assertEquals(1d, s1.getDistance(origin).degrees(), epsilon);
501 assertEquals(1d, s2.getDistance(origin).degrees(), epsilon);
502 assertEquals(1d, s3.getDistance(origin).degrees(), epsilon);
DS2EdgeUtilTest.java426 assertEquals(distanceRadians, S2EdgeUtil.getDistance(x, a, b).radians(), kEpsilon); in checkDistance()
516 S1Angle distAb = S2EdgeUtil.getDistance(x, a, b); in testIntersectionTolerance()
517 S1Angle distCd = S2EdgeUtil.getDistance(x, c, d); in testIntersectionTolerance()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLng.java180 public S1Angle getDistance(final S2LatLng o) { in getDistance() method in S2LatLng
210 public double getDistance(final S2LatLng o, double radius) { in getDistance() method in S2LatLng
212 return getDistance(o).radians() * radius; in getDistance()
220 return getDistance(o, EARTH_RADIUS_METERS); in getEarthDistance()
DS2LatLngRect.java227 public S1Angle getDistance(S2LatLng p) { in getDistance() method in S2LatLngRect
250 return S2EdgeUtil.getDistance(p.toPoint(), lo, hi, loCrossHi); in getDistance()
257 public S1Angle getDistance(S2LatLngRect other) { in getDistance() method in S2LatLngRect
313 return S1Angle.min(S2EdgeUtil.getDistance(aLo, bLo, bHi, bLoCrossHi), in getDistance()
314 S1Angle.min(S2EdgeUtil.getDistance(aHi, bLo, bHi, bLoCrossHi), in getDistance()
315 S1Angle.min(S2EdgeUtil.getDistance(bLo, aLo, aHi, aLoCrossHi), in getDistance()
316 S2EdgeUtil.getDistance(bHi, aLo, aHi, aLoCrossHi)))); in getDistance()
DS2EdgeUtil.java750 public static S1Angle getDistance(S2Point x, S2Point a, S2Point b) { in getDistance() method in S2EdgeUtil
751 return getDistance(x, a, b, S2.robustCrossProd(a, b)); in getDistance()
760 public static S1Angle getDistance(S2Point x, S2Point a, S2Point b, S2Point aCrossB) { in getDistance() method in S2EdgeUtil
/external/flatbuffers/tests/MyGame/Example/
DStructOfStructsOfStructs.java51 int _a_a_distance = _o.getA().getA().getDistance(); in pack()
55 int _a_c_distance = _o.getA().getC().getDistance(); in pack()
DStructOfStructs.java56 int _a_distance = _o.getA().getDistance(); in pack()
60 int _c_distance = _o.getC().getDistance(); in pack()
DAbilityT.java18 public long getDistance() { return distance; } in getDistance() method in AbilityT
DAbility.java49 _o.getDistance()); in pack()
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DDistanceTable.java274 subtables.put(key.getDesired(), key.getSupported(), new Node(key.getDistance())); in putIfAbsent()
277 return (key.getDistance() == node.distance); in putIfAbsent()
493 int getDistance() { in getDistance() method in DistanceTable.MappingKey
550 ? String.format("<%s, %s> = %d", getDesired(), getSupported(), getDistance()) in toString()
/external/grpc-grpc/examples/node/dynamic_codegen/route_guide/
Droute_guide_server.js120 function getDistance(start, end) { function
162 distance += getDistance(previous, point);
/external/grpc-grpc/examples/node/static_codegen/route_guide/
Droute_guide_server.js110 function getDistance(start, end) { function
152 distance += getDistance(previous, point);
Droute_guide_pb.js841 distance: msg.getDistance(),
947 f = this.getDistance();
1007 proto.routeguide.RouteSummary.prototype.getDistance = function() { method in proto.routeguide.RouteSummary
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DRealVector.java774 double getDistance(RealVector v); in getDistance() method
789 double getDistance(double[] v); in getDistance() method
DOpenMapRealVector.java414 public double getDistance(OpenMapRealVector v) throws IllegalArgumentException {
438 public double getDistance(RealVector v) throws IllegalArgumentException {
441 return getDistance((OpenMapRealVector) v);
443 return getDistance(v.getData());
448 public double getDistance(double[] v) throws IllegalArgumentException {
DArrayRealVector.java755 public double getDistance(RealVector v) in getDistance() method in ArrayRealVector
758 return getDistance((ArrayRealVector) v); in getDistance()
772 public double getDistance(double[] v) in getDistance() method in ArrayRealVector
796 public double getDistance(ArrayRealVector v) in getDistance() method in ArrayRealVector
798 return getDistance(v.data); in getDistance()
/external/xz-java/src/org/tukaani/xz/
DDeltaEncoder.java17 props[0] = (byte)(options.getDistance() - 1); in DeltaEncoder()
DDeltaOptions.java70 public int getDistance() { in getDistance() method in DeltaOptions
DDeltaOutputStream.java33 delta = new DeltaEncoder(options.getDistance()); in DeltaOutputStream()
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/highlight/
DChartHighlighter.java216 float cDistance = getDistance(x, y, high.getXPx(), high.getYPx());
237 protected float getDistance(float x1, float y1, float x2, float y2) {
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DDropShadowEffect.java34 public AnimatableFloatValue getDistance() { in getDistance() method in DropShadowEffect
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/draft/
DXLocaleDistance.java113 …abstract int getDistance(String desiredLang, String supportedlang, Output<DistanceTable> table, bo… in getDistance() method in XLocaleDistance.DistanceTable
366 …public int getDistance(String desired, String supported, Output<DistanceTable> distanceTable, bool… in getDistance() method in XLocaleDistance.StringDistanceTable
436 int distance = getDistance(desired, supported, node2, true); in addSubtables()
681 … int distance = languageDesired2Supported.getDistance(desiredLang, supportedlang, subtable, true); in distanceRaw()
692 … int scriptDistance = subtable.value.getDistance(desiredScript, supportedScript, subtable, true); in distanceRaw()
728 …int tempSubdistance = subtable.value.getDistance(desiredPartition2, supportedPartition2, null, fal… in distanceRaw()
735 … subdistance = subtable.value.getDistance(desiredPartition, supportedPartition, null, false); in distanceRaw()

123