Home
last modified time | relevance | path

Searched refs:M_PI_2 (Results 1 – 24 of 24) sorted by relevance

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS1IntervalTest.java67 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 …]
DS2LatLngTest.java21 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()
DS2LatLngRectTest.java81 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()
DS2CapTest.java137 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()
DS2CellTest.java127 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()
DS2Test.java134 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()
DS2EdgeUtilTest.java176 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()
DS2LoopTest.java118 assertEquals(southHemi.getRectBound().lat(), new R1Interval(-S2.M_PI_2, 0)); in testBounds()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLngRect.java60 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()
DS2Cap.java259 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()
DS2LatLng.java144 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()
DS2Cell.java325 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()
DS2Loop.java269 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()
DS2.java26 public static final double M_PI_2 = Math.PI / 2.0; field in S2
/external/libchrome/ui/gfx/geometry/
Dquaternion_unittest.cc42 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/
Ddefinitions.h58 #define M_PI_2 0x1.921fb54442d18p+0 macro
/external/oboe/apps/OboeTester/app/src/main/cpp/analyzer/
DBaseSineAnalyzer.h132 double phase = M_PI_2 - atan2(sinMean, cosMean);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DNativeInput.java283 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/
Dnir_builtin_builder.c209 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/
Dopencl-c-base.h209 #define M_PI_2 0x1.921fb54442d18p+0 macro
/external/mesa3d/src/compiler/spirv/
Dvtn_glsl450.c36 #define M_PI_2f ((float) M_PI_2)
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes.cc4606 params->converter->ProvideQuantizationRange(output_tensor, -M_PI_2, M_PI_2); in ConvertUnary()
/external/mesa3d/src/compiler/glsl/
Dbuiltin_functions.cpp88 #define M_PI_2f ((float) M_PI_2)
/external/clang/lib/Headers/
Dopencl-c.h222 #define M_PI_2 0x1.921fb54442d18p+0 macro