Searched refs:fromRadians (Results 1 – 4 of 4) sorted by relevance
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2LatLngRect.java | 202 return S2LatLng.fromRadians(lat.lo(), lng.lo()); in getVertex() 204 return S2LatLng.fromRadians(lat.lo(), lng.hi()); in getVertex() 206 return S2LatLng.fromRadians(lat.hi(), lng.hi()); in getVertex() 208 return S2LatLng.fromRadians(lat.hi(), lng.lo()); in getVertex() 219 return S2LatLng.fromRadians(lat.getCenter(), lng.getCenter()); in getCenter() 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() 307 S2LatLng.fromRadians(0, aLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance() 311 S2LatLng.fromRadians(0, bLng.radians() - S2.M_PI_2).normalized().toPoint(); in getDistance() [all …]
|
D | S2LatLng.java | 39 public static S2LatLng fromRadians(double latRadians, double lngRadians) { in fromRadians() method in S2LatLng
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2LatLngTest.java | 21 S2LatLng llRad = S2LatLng.fromRadians(S2.M_PI_4, S2.M_PI_2); in testBasic() 57 new S2LatLng(S2LatLng.fromRadians(-S2.M_PI_2, 1).toPoint()).lat().radians(), -S2.M_PI_2); in testConversion() 61 Math.abs(new S2LatLng(S2LatLng.fromRadians(0.1, -S2.M_PI).toPoint()).lng().radians()), in testConversion()
|
D | S2LatLngRectTest.java | 38 if (y.getSize() == S2LatLng.fromRadians(0, 0)) { in testIntervalOps() 104 S2LatLng eqM180 = S2LatLng.fromRadians(0, -S2.M_PI); in testBasic() 105 S2LatLng northPole = S2LatLng.fromRadians(S2.M_PI_2, 0); in testBasic() 108 assertEquals(r1.getCenter(), S2LatLng.fromRadians(S2.M_PI_4, -S2.M_PI_2)); in testBasic() 109 assertEquals(r1.getVertex(0), S2LatLng.fromRadians(0, S2.M_PI)); in testBasic() 110 assertEquals(r1.getVertex(1), S2LatLng.fromRadians(0, 0)); in testBasic() 111 assertEquals(r1.getVertex(2), S2LatLng.fromRadians(S2.M_PI_2, 0)); in testBasic() 112 assertEquals(r1.getVertex(3), S2LatLng.fromRadians(S2.M_PI_2, S2.M_PI)); in testBasic() 170 p = p.addPoint(S2LatLng.fromRadians(0, -S2.M_PI_2)); in testBasic() 171 p = p.addPoint(S2LatLng.fromRadians(S2.M_PI_4, -S2.M_PI)); in testBasic()
|