Home
last modified time | relevance | path

Searched refs:toPoint (Results 1 – 17 of 17) sorted by relevance

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2PolylineTest.java123 latLngs.add(S2LatLng.fromDegrees(0, 0).toPoint());
124 latLngs.add(S2LatLng.fromDegrees(0, 1).toPoint());
125 latLngs.add(S2LatLng.fromDegrees(0, 2).toPoint());
126 latLngs.add(S2LatLng.fromDegrees(1, 2).toPoint());
132 testPoint = S2LatLng.fromDegrees(0.5, -0.5).toPoint();
135 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 0).toPoint()));
138 testPoint = S2LatLng.fromDegrees(0.5, 0.5).toPoint();
141 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 0.5).toPoint()));
144 testPoint = S2LatLng.fromDegrees(0.5, 1).toPoint();
147 line.projectToEdge(testPoint, edgeIndex), S2LatLng.fromDegrees(0, 1).toPoint()));
[all …]
DS2LatLngRectTest.java52 || (!r.isEmpty() && cell.contains(r.getVertex(i).toPoint()))) { in testCellOps()
127 S2.simpleCCW(r.getVertex((k - 1) & 3).toPoint(), r.getVertex(k).toPoint(), in testBasic()
128 r.getVertex((k + 1) & 3).toPoint())); in testBasic()
407 { {pntA[0].toPoint(), pntA[3].toPoint()}, {pntA[1].toPoint(), pntA[2].toPoint()}}; in bruteForceDistance()
409 { {pntB[0].toPoint(), pntB[3].toPoint()}, {pntB[1].toPoint(), pntB[2].toPoint()}}; in bruteForceDistance()
422 S2EdgeUtil.getDistance(currentA.toPoint(), lng_edge_b[j][0], lng_edge_b[j][1]); in bruteForceDistance()
424 S2EdgeUtil.getDistance(currentB.toPoint(), lng_edge_a[j][0], lng_edge_a[j][1]); in bruteForceDistance()
441 S2EdgeUtil.getDistance(b.toPoint(), new S2LatLng(a.latLo(), a.lngLo()).toPoint(), in bruteForceRectPointDistance()
442 new S2LatLng(a.latHi(), a.lngLo()).toPoint()); in bruteForceRectPointDistance()
444 S2EdgeUtil.getDistance(b.toPoint(), new S2LatLng(a.latLo(), a.lngHi()).toPoint(), in bruteForceRectPointDistance()
[all …]
DS2LatLngTest.java55 new S2LatLng(S2LatLng.fromDegrees(90.0, 65.0).toPoint()).lat().degrees(), 90.0); in testConversion()
57 new S2LatLng(S2LatLng.fromRadians(-S2.M_PI_2, 1).toPoint()).lat().radians(), -S2.M_PI_2); in testConversion()
59 Math.abs(new S2LatLng(S2LatLng.fromDegrees(12.2, 180.0).toPoint()).lng().degrees()), 180.0); in testConversion()
61 Math.abs(new S2LatLng(S2LatLng.fromRadians(0.1, -S2.M_PI).toPoint()).lng().radians()), in testConversion()
67 assertTrue(S2.approxEquals(p, new S2LatLng(p).toPoint())); in testConversion()
DS2EdgeUtilTest.java394 S2Point a = S2LatLng.fromDegrees(-0.5, 0).toPoint(); in testGetClosestPoint()
395 S2Point b = S2LatLng.fromDegrees(+0.5, 0).toPoint(); in testGetClosestPoint()
402 S2Point mid = S2LatLng.fromDegrees(0, 0).toPoint(); in testGetClosestPoint()
406 assertEquals(a, S2EdgeUtil.getClosestPoint(S2LatLng.fromDegrees(-1, 0).toPoint(), a, b)); in testGetClosestPoint()
407 assertEquals(b, S2EdgeUtil.getClosestPoint(S2LatLng.fromDegrees(+1, 0).toPoint(), a, b)); in testGetClosestPoint()
410 S2Point x = S2LatLng.fromDegrees(+0.1, 1).toPoint(); in testGetClosestPoint()
411 S2Point expectedClosestPoint = S2LatLng.fromDegrees(+0.1, 0).toPoint(); in testGetClosestPoint()
DS2LoopTest.java190 assertTrue(candyCane.contains(S2LatLng.fromDegrees(5, 71).toPoint())); in testContains()
492 assertEquals(0d, s1.getDistance(S2LatLng.fromDegrees(0.5, 1).toPoint()).radians(), epsilon);
499 S2Point origin = S2LatLng.fromDegrees(0, 0).toPoint();
DGeometryTestCase.java178 vertices.add(S2LatLng.fromDegrees(lat, lng).toPoint());
DS2CapTest.java21 return S2LatLng.fromDegrees(latDegrees, lngDegrees).toPoint(); in getLatLngPoint()
DS2PolygonTest.java333 S2Point origin = S2LatLng.fromDegrees(0, 0).toPoint(); in testGetDistance()
DS2CellTest.java185 assertTrue(children[i].getCenter().aequal(childId.toPoint(), 1e-15)); in testSubdivide()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLngRect.java246 S2Point lo = S2LatLng.fromRadians(a.lat().lo(), aLng).toPoint(); in getDistance()
247 S2Point hi = S2LatLng.fromRadians(a.lat().hi(), aLng).toPoint(); in getDistance()
249 S2LatLng.fromRadians(0, aLng - S2.M_PI_2).normalized().toPoint(); in getDistance()
250 return S2EdgeUtil.getDistance(p.toPoint(), lo, hi, loCrossHi); in getDistance()
304 S2Point aLo = new S2LatLng(a.latLo(), aLng).toPoint(); in getDistance()
305 S2Point aHi = new S2LatLng(a.latHi(), aLng).toPoint(); in getDistance()
307 S2LatLng.fromRadians(0, aLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance()
308 S2Point bLo = new S2LatLng(b.latLo(), bLng).toPoint(); in getDistance()
309 S2Point bHi = new S2LatLng(b.latHi(), bLng).toPoint(); in getDistance()
311 S2LatLng.fromRadians(0, bLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance()
[all …]
DS2EdgeIndex.java477 S2Point toPoint = vertices[(i + 1) % 4]; in edgeIntersectsCellBoundary() local
478 if (lenientCrossing(a, b, fromPoint, toPoint)) { in edgeIntersectsCellBoundary()
DS2LatLng.java169 public S2Point toPoint() { in toPoint() method in S2LatLng
DS2CellId.java159 return fromPoint(ll.toPoint()); in fromLatLng()
162 public S2Point toPoint() { in toPoint() method in S2CellId
DS2CellUnion.java425 centroid = S2Point.add(centroid, S2Point.mul(id.toPoint(), area)); in getCapBound()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableAggregation.java69 abstract Point toPoint(Timestamp timestamp); in toPoint() method in MutableAggregation
104 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableSumDouble
135 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableSumLong
173 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableCount
225 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableMean
408 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableDistribution
521 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableLastValueDouble
552 Point toPoint(Timestamp timestamp) { in toPoint() method in MutableAggregation.MutableLastValueLong
DMutableViewData.java141 Point point = entry.getValue().toPoint(now); in toMetric()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DMutableAggregationTest.java293 assertThat(MutableSumDouble.create().toPoint(TIMESTAMP)) in mutableAggregation_ToPoint()
295 assertThat(MutableSumLong.create().toPoint(TIMESTAMP)) in mutableAggregation_ToPoint()
297 assertThat(MutableCount.create().toPoint(TIMESTAMP)) in mutableAggregation_ToPoint()
299 assertThat(MutableMean.create().toPoint(TIMESTAMP)) in mutableAggregation_ToPoint()
304 assertThat(MutableDistribution.create(BUCKET_BOUNDARIES).toPoint(TIMESTAMP)) in mutableAggregation_ToPoint()