/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2LatLngRect.java | 29 private final S1Interval lng; field in S2LatLngRect 37 lng = new S1Interval(lo.lng().radians(), hi.lng().radians()); in S2LatLngRect() 42 public S2LatLngRect(R1Interval lat, S1Interval lng) { in S2LatLngRect() argument 44 this.lng = lng; in S2LatLngRect() 96 .lat().radians()), S1Interval.fromPointPair(p1.lng().radians(), p2.lng() in fromPointPair() 126 return new S2LatLngRect(new R1Interval(r.lat().lo(), absLat), r.lng()); in fromEdge() 128 return new S2LatLngRect(new R1Interval(-absLat, r.lat().hi()), r.lng()); in fromEdge() 141 && lng.isValid() && lat.isEmpty() == lng.isEmpty()); in isValid() 154 return S1Angle.radians(lng.lo()); in lngLo() 158 return S1Angle.radians(lng.hi()); in lngHi() [all …]
|
D | S2LatLng.java | 83 public S2LatLng(S1Angle lat, S1Angle lng) { in S2LatLng() argument 84 this(lat.radians(), lng.radians()); in S2LatLng() 125 public S1Angle lng() { in lng() method in S2LatLng 144 return Math.abs(lat().radians()) <= S2.M_PI_2 && Math.abs(lng().radians()) <= S2.M_PI; in isValid() 161 Math.IEEEremainder(lng().radians(), 2 * S2.M_PI)); in normalized() 171 double theta = lng().radians(); in toPoint() 193 double lng1 = lng().radians(); in getDistance() 194 double lng2 = o.lng().radians(); in getDistance()
|
D | S2Cap.java | 253 double[] lat = new double[2], lng = new double[2]; in getRectBound() local 254 lng[0] = -S2.M_PI; in getRectBound() 255 lng[1] = S2.M_PI; in getRectBound() 285 lng[0] = Math.IEEEremainder(axisLatLng.lng().radians() - angleA, in getRectBound() 287 lng[1] = Math.IEEEremainder(axisLatLng.lng().radians() + angleA, in getRectBound() 292 lng[0], lng[1])); in getRectBound()
|
D | S2Loop.java | 450 if (b.getRectBound().lng().getLength() > bound.lng().getLength()) { in intersects() 861 if (b.lng().isFull() && contains(new S2Point(0, 0, -1))) { in initBound() 862 b = new S2LatLngRect(new R1Interval(-S2.M_PI_2, b.lat().hi()), b.lng()); in initBound()
|
D | S2Cell.java | 328 S1Interval lng = S1Interval.fromPointPair(getLongitude(i, 1 - j), getLongitude(1 - i, j)); in getRectBound() local 329 return new S2LatLngRect(lat, lng.expanded(MAX_ERROR)); in getRectBound()
|
D | S2Polygon.java | 378 if (!bound.lng().union(b.getRectBound().lng()).isFull()) { in contains()
|
D | S2EdgeUtil.java | 214 bound = new S2LatLngRect(lat, bound.lng()); in addPoint()
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S2LatLngTest.java | 23 assertTrue(llRad.lng().radians() == S2.M_PI_2); in testBasic() 36 assertDoubleNear(better.lng().radians(), S1Angle.degrees(-160).radians()); in testBasic() 43 assertDoubleNear(better.lng().radians(), 0); in testBasic() 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() 73 assertDoubleNear(test.lng().degrees(), 0.98765); in testConversion()
|
D | S2LatLngRectTest.java | 82 assertTrue(d1.lng().equals(new S1Interval(0, S2.M_PI))); in testBasic() 122 double lng = S2.M_PI_2 * (i - 2) + 0.2; in testBasic() local 124 Math.IEEEremainder(lng, 2 * S2.M_PI), Math.IEEEremainder(lng + S2.M_PI_2, 2 * S2.M_PI))); in testBasic() 244 rectFromDegrees(v0.lat().degrees() - 1e-8, v0.lng().degrees() - 1e-8, in testBasic() 245 v0.lat().degrees() - 2e-10, v0.lng().degrees() + 1e-10), cell0tr, 1); in testBasic() 257 rectFromDegrees(bound202.lo().lat().degrees() + 3, bound202.lo().lng().degrees() + 3, in testBasic() 258 bound202.hi().lat().degrees() - 3, bound202.hi().lng().degrees() - 3), cell202, 2); in testBasic() 419 S1Angle aToLat = getDistance(currentA, latB[j], b.lng()); in bruteForceDistance() 420 S1Angle bToLat = getDistance(currentB, latA[j], a.lng()); in bruteForceDistance() 438 S1Angle bToLoLat = getDistance(b, a.latLo(), a.lng()); in bruteForceRectPointDistance() [all …]
|
D | S2CapTest.java | 131 assertTrue(rect.lng().isFull()); in testRectBound() 138 assertTrue(rect.lng().isFull()); in testRectBound() 144 assertTrue(rect.lng().isFull()); in testRectBound() 151 assertTrue(rect.lng().isFull()); in testRectBound() 164 assertTrue(rect.lng().isFull()); in testRectBound()
|
D | GeometryTestCase.java | 177 double lng = Double.parseDouble(token.substring(colon + 1)); 178 vertices.add(S2LatLng.fromDegrees(lat, lng).toPoint());
|
D | S2PolygonTest.java | 187 S2Loop s2Loop, int vertexIndex, double lat, double lng, double error) { 190 assertDoubleNear(latLng.lngDegrees(), lng, error);
|
D | S2LoopTest.java | 102 assertTrue(candyCane.getRectBound().lng().isFull()); in testBounds() 117 assertTrue(southHemi.getRectBound().lng().isFull()); in testBounds()
|
D | S2CellTest.java | 214 assertTrue(parentRect.lng().isFull()); in testSubdivide()
|
/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/ |
D | FlatbuffersDoubleTests.swift | 34 static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (4,6,8) 51 CountryDouble.add(builder: &builder, lng: log) in createCountry() 73 static func add(builder: inout FlatBufferBuilder, lng: Double) { in add() 74 builder.add(element: lng, def: 0, at: Country.offsets.lng) in add()
|
D | FlatBuffersTests.swift | 73 static let offsets: (name: VOffset, lan: VOffset, lng: VOffset) = (0, 1, 2) 95 Country.add(builder: &builder, lng: log) in createCountry() 117 @inlinable static func add(builder: inout FlatBufferBuilder, lng: Int32) { in add() 118 builder.add(element: lng, def: 0, at: Country.offsets.lng) in add()
|
/external/icu/android_icu4j/testing/src/com/android/icu/test/text/ |
D | TimeZoneNamesNativeTest.java | 58 final String lng = tznJava.getDisplayName(zid, NameType.LONG_STANDARD, now); in testGetFilledZoneStrings() local 65 if (tznNative[i][1] != null && lng != null) { in testGetFilledZoneStrings() 66 assertEquals("LONG_STANDARD", lng, tznNative[i][1]); in testGetFilledZoneStrings()
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/ |
D | markermanager.js | 441 MarkerManager.prototype.getMarker = function (lat, lng, zoom) { argument 442 var mPoint = new google.maps.LatLng(lat, lng); 451 if (lat === cellArray[i].getLatLng().lat() && lng === cellArray[i].getLatLng().lng()) { 589 if (tr.lng() < bl.lng() || ne.x < sw.x) { 938 ProjectionHelperOverlay.prototype.LngToX_ = function (lng) { argument 939 return (1 + lng / 180); 961 …var abs = {x: ~~(0.5 + this.LngToX_(latlng.lng()) * (2 << (zoom + 6))), y: ~~(0.5 + this.LatToY_(l…
|
/external/grpc-grpc/examples/node/dynamic_codegen/route_guide/ |
D | route_guide_client.js | 140 function pointSender(lat, lng) { argument 147 lng/COORD_FACTOR); 150 longitude: lng
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/ |
D | tirpc_svc_7.c | 50 long lng; member 118 result = in->lng; in lngTestProc()
|
/external/scapy/scapy/ |
D | data.py | 226 lng=shrt 228 lng = l[i+2:] 229 manufdb[oui] = plain_str(shrt), plain_str(lng)
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/ |
D | rpc_svc_1.c | 55 long lng; member 131 result = in->lng; in lngTestProc()
|
/external/python/google-api-python-client/samples/coordinate/ |
D | coordinate.py | 83 lng='122.084429',
|
/external/python/cpython2/Objects/ |
D | intobject.c | 428 #define CONVERT_TO_LONG(obj, lng) \ argument 430 lng = PyInt_AS_LONG(obj); \
|
/external/libevent/ |
D | buffer.c | 2266 unsigned long lng = EVBUFFER_MAX_READ; in get_n_bytes_readable_on_socket() local 2267 if (ioctlsocket(fd, FIONREAD, &lng) < 0) in get_n_bytes_readable_on_socket() 2270 return (int)lng; in get_n_bytes_readable_on_socket()
|