/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | S1IntervalTest.java | 67 S1Interval quad23 = new S1Interval(S2.M_PI_2, -S2.M_PI_2); // inverted in testBasic() 68 assertEquals(quad23.lo(), S2.M_PI_2); in testBasic() 69 assertEquals(quad23.hi(), -S2.M_PI_2); in testBasic() 70 S1Interval quad1 = new S1Interval(0, S2.M_PI_2); in testBasic() 86 assertEquals(quad12.getCenter(), S2.M_PI_2); in testBasic() 97 S1Interval quad123 = new S1Interval(0, -S2.M_PI_2); in testBasic() 111 S1Interval quad4 = new S1Interval(-S2.M_PI_2, 0); in testBasic() 113 S1Interval quad234 = new S1Interval(S2.M_PI_2, 0); in testBasic() 121 assertTrue(quad12.interiorContains(S2.M_PI_2) && !quad12.interiorContains(0)); in testBasic() 123 assertTrue(quad23.contains(S2.M_PI_2) && quad23.contains(-S2.M_PI_2)); in testBasic() [all …]
|
D | S2LatLngTest.java | 21 S2LatLng llRad = S2LatLng.fromRadians(S2.M_PI_4, S2.M_PI_2); in testBasic() 23 assertTrue(llRad.lng().radians() == 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()
|
D | S2LatLngRectTest.java | 81 assertTrue(d1.lat().equals(new R1Interval(-S2.M_PI_2, -S2.M_PI_4))); 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() 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() 122 double lng = S2.M_PI_2 * (i - 2) + 0.2; in testBasic() 124 Math.IEEEremainder(lng, 2 * S2.M_PI), Math.IEEEremainder(lng + S2.M_PI_2, 2 * S2.M_PI))); in testBasic() 170 p = p.addPoint(S2LatLng.fromRadians(0, -S2.M_PI_2)); in testBasic() 280 assertDoubleNear(getEdgeBound(.3, .4, 1, -.3, -.4, 1).lat().hi(), S2.M_PI_2); in testEdgeBound() 281 assertDoubleNear(getEdgeBound(.3, .4, -1, -.3, -.4, -1).lat().lo(), -S2.M_PI_2); in testEdgeBound()
|
D | S2CapTest.java | 137 assertDoubleNear(rect.lat().hi(), S2.M_PI_2); in testRectBound() 148 .fromAxisAngle(new S2Point(0, 1, 0), S1Angle.radians(S2.M_PI_2 + 5e-16)).getRectBound(); in testRectBound()
|
D | S2CellTest.java | 127 double width = S2.M_PI_2 - mid.angle(cell.getEdgeRaw(i ^ 2)); in gatherStats() 259 if (childRect.latLo().radians() > -S2.M_PI_2 in testSubdivide() 260 && childRect.latHi().radians() < S2.M_PI_2) { in testSubdivide()
|
D | S2Test.java | 134 assertDoubleNear(S2.angle(pz, p000, p045), S2.M_PI_2); in testAngleArea() 136 assertDoubleNear(S2.area(p000, p090, pz), S2.M_PI_2); in testAngleArea()
|
D | S2EdgeUtilTest.java | 176 assertDoubleNear(getEdgeBound(.3, .4, 1, -.3, -.4, 1).lat().hi(), S2.M_PI_2); in testRectBounder() 177 assertDoubleNear(getEdgeBound(.3, .4, -1, -.3, -.4, -1).lat().lo(), -S2.M_PI_2); in testRectBounder()
|
D | S2LoopTest.java | 118 assertEquals(southHemi.getRectBound().lat(), new R1Interval(-S2.M_PI_2, 0)); in testBounds()
|
/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2LatLngRect.java | 60 return new R1Interval(-S2.M_PI_2, S2.M_PI_2); in fullLat() 140 return (Math.abs(lat.lo()) <= S2.M_PI_2 && Math.abs(lat.hi()) <= S2.M_PI_2 in isValid() 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() 602 poleAngle = S2.M_PI_2 + lat.hi(); in getCapBound() 605 poleAngle = S2.M_PI_2 - lat.lo(); in getCapBound()
|
D | S2Cap.java | 259 if (lat[0] <= -S2.M_PI_2) { in getRectBound() 260 lat[0] = -S2.M_PI_2; in getRectBound() 265 if (lat[1] >= S2.M_PI_2) { in getRectBound() 266 lat[1] = S2.M_PI_2; in getRectBound()
|
D | S2LatLng.java | 144 return Math.abs(lat().radians()) <= S2.M_PI_2 && Math.abs(lng().radians()) <= S2.M_PI; in isValid() 160 return new S2LatLng(Math.max(-S2.M_PI_2, Math.min(S2.M_PI_2, lat().radians())), in normalized()
|
D | S2Cell.java | 325 if (lat.lo() == -S2.M_PI_2 || lat.hi() == S2.M_PI_2) { in getRectBound() 344 new R1Interval(POLE_MIN_LAT, S2.M_PI_2), new S1Interval(-S2.M_PI, S2.M_PI)); in getRectBound() 353 new R1Interval(-S2.M_PI_2, -POLE_MIN_LAT), new S1Interval(-S2.M_PI, S2.M_PI)); in getRectBound()
|
D | S2Loop.java | 269 if (bound.lat().lo() > -S2.M_PI_2 && bound.lat().hi() < S2.M_PI_2) { in invert() 855 b = new S2LatLngRect(new R1Interval(b.lat().lo(), S2.M_PI_2), S1Interval.full()); in initBound() 862 b = new S2LatLngRect(new R1Interval(-S2.M_PI_2, b.lat().hi()), b.lng()); in initBound()
|
D | S2.java | 26 public static final double M_PI_2 = Math.PI / 2.0; field in S2
|
/external/libchrome/ui/gfx/geometry/ |
D | quaternion_unittest.cc | 42 Quaternion r(Vector3dF(0.0f, 0.0f, 1.0f), M_PI_2); in TEST() 153 double start_radians = -M_PI_2; in TEST() 154 double stop_radians = M_PI_2; in TEST()
|
/external/llvm-project/libclc/generic/include/clc/float/ |
D | definitions.h | 58 #define M_PI_2 0x1.921fb54442d18p+0 macro
|
/external/oboe/apps/OboeTester/app/src/main/cpp/analyzer/ |
D | BaseSineAnalyzer.h | 132 double phase = M_PI_2 - atan2(sinMean, cosMean);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | NativeInput.java | 283 private static final double M_PI_2 = 1.57079632679489661923f; /* pi/2 */ field in NativeInput.MotionEvent 708 if (result < -M_PI_2) { in transformAngle() 710 } else if (result > M_PI_2) { in transformAngle()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_builtin_builder.c | 209 nir_fadd_imm(b, nir_fmul_imm(b, tmp, -2.0f), M_PI_2))); in nir_atan() 283 nir_fadd(b, nir_fmul_imm(b, nir_b2f(b, flip, bit_size), M_PI_2), in nir_atan2()
|
/external/llvm-project/clang/lib/Headers/ |
D | opencl-c-base.h | 209 #define M_PI_2 0x1.921fb54442d18p+0 macro
|
/external/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 36 #define M_PI_2f ((float) M_PI_2)
|
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/ |
D | convert_nodes.cc | 4606 params->converter->ProvideQuantizationRange(output_tensor, -M_PI_2, M_PI_2); in ConvertUnary()
|
/external/mesa3d/src/compiler/glsl/ |
D | builtin_functions.cpp | 88 #define M_PI_2f ((float) M_PI_2)
|
/external/clang/lib/Headers/ |
D | opencl-c.h | 222 #define M_PI_2 0x1.921fb54442d18p+0 macro
|