/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2PolylineTest.java | 123 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 …]
|
D | S2LatLngRectTest.java | 52 || (!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 …]
|
D | S2LatLngTest.java | 55 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()
|
D | S2EdgeUtilTest.java | 394 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()
|
D | S2LoopTest.java | 190 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();
|
D | GeometryTestCase.java | 178 vertices.add(S2LatLng.fromDegrees(lat, lng).toPoint());
|
D | S2CapTest.java | 21 return S2LatLng.fromDegrees(latDegrees, lngDegrees).toPoint(); in getLatLngPoint()
|
D | S2PolygonTest.java | 333 S2Point origin = S2LatLng.fromDegrees(0, 0).toPoint(); in testGetDistance()
|
D | S2CellTest.java | 185 assertTrue(children[i].getCenter().aequal(childId.toPoint(), 1e-15)); in testSubdivide()
|
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2LatLngRect.java | 246 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 …]
|
D | S2EdgeIndex.java | 477 S2Point toPoint = vertices[(i + 1) % 4]; in edgeIntersectsCellBoundary() local 478 if (lenientCrossing(a, b, fromPoint, toPoint)) { in edgeIntersectsCellBoundary()
|
D | S2LatLng.java | 169 public S2Point toPoint() { in toPoint() method in S2LatLng
|
D | S2CellId.java | 159 return fromPoint(ll.toPoint()); in fromLatLng() 162 public S2Point toPoint() { in toPoint() method in S2CellId
|
D | S2CellUnion.java | 425 centroid = S2Point.add(centroid, S2Point.mul(id.toPoint(), area)); in getCapBound()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/ |
D | MutableAggregation.java | 69 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
|
D | MutableViewData.java | 141 Point point = entry.getValue().toPoint(now); in toMetric()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/ |
D | MutableAggregationTest.java | 293 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()
|