Home
last modified time | relevance | path

Searched refs:degrees (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS1AngleTest.java26 assertEquals(S1Angle.radians(Math.PI).degrees(), 180.0); in testBasic()
27 assertEquals(S1Angle.degrees(180).radians(), Math.PI); in testBasic()
28 assertEquals(S1Angle.degrees(180).degrees(), 180.0); in testBasic()
30 assertEquals(S1Angle.radians(Math.PI / 2).degrees(), 90.0); in testBasic()
33 assertEquals(S1Angle.radians(-Math.PI / 2).degrees(), -90.0); in testBasic()
34 assertEquals(S1Angle.degrees(-45).radians(), -Math.PI / 4); in testBasic()
37 assertEquals(S1Angle.e5(2000000), S1Angle.degrees(20)); in testBasic()
38 assertEquals(S1Angle.e6(-60000000), S1Angle.degrees(-60)); in testBasic()
39 assertEquals(S1Angle.e7(750000000), S1Angle.degrees(75)); in testBasic()
40 assertEquals(S1Angle.degrees(12.34567).e5(), 1234567); in testBasic()
[all …]
DS2LatLngTest.java35 assertEquals(better.lat(), S1Angle.degrees(90)); in testBasic()
36 assertDoubleNear(better.lng().radians(), S1Angle.degrees(-160).radians()); in testBasic()
42 assertEquals(better.lat(), S1Angle.degrees(-90)); in testBasic()
55 new S2LatLng(S2LatLng.fromDegrees(90.0, 65.0).toPoint()).lat().degrees(), 90.0); in testConversion()
59 Math.abs(new S2LatLng(S2LatLng.fromDegrees(12.2, 180.0).toPoint()).lng().degrees()), 180.0); in testConversion()
72 assertDoubleNear(test.lat().degrees(), 1.23456); in testConversion()
73 assertDoubleNear(test.lng().degrees(), 0.98765); in testConversion()
80 S2LatLng.fromDegrees(-37, 25).getDistance(S2LatLng.fromDegrees(-66, -155)).degrees(), 77, in testDistance()
83 S2LatLng.fromDegrees(0, 165).getDistance(S2LatLng.fromDegrees(0, -80)).degrees(), 115, in testDistance()
86 S2LatLng.fromDegrees(47, -127).getDistance(S2LatLng.fromDegrees(-47, 53)).degrees(), 180, in testDistance()
DS2CapTest.java38 assertDoubleNear(full.angle().degrees(), 180); in testBasic()
90 S2Cap concave = S2Cap.fromAxisAngle(getLatLngPoint(80, 10), S1Angle.degrees(150)); in testBasic()
128 S2Cap.fromAxisAngle(getLatLngPoint(-45, 57), S1Angle.degrees(50)).getRectBound(); in testRectBound()
129 assertDoubleNear(rect.latLo().degrees(), -90, kDegreeEps); in testRectBound()
130 assertDoubleNear(rect.latHi().degrees(), 5, kDegreeEps); in testRectBound()
141 .fromAxisAngle(S2Point.normalize(new S2Point(1, 0, 1)), S1Angle.degrees(45)).getRectBound(); in testRectBound()
142 assertDoubleNear(rect.latLo().degrees(), 0, kDegreeEps); in testRectBound()
143 assertDoubleNear(rect.latHi().degrees(), 90, kDegreeEps); in testRectBound()
149 assertDoubleNear(rect.latLo().degrees(), -90, kDegreeEps); in testRectBound()
150 assertDoubleNear(rect.latHi().degrees(), 90, kDegreeEps); in testRectBound()
[all …]
DS2LatLngRectTest.java77 assertDoubleNear(d1.latLo().degrees(), -90); in testBasic()
78 assertDoubleNear(d1.latHi().degrees(), -45); in testBasic()
79 assertDoubleNear(d1.lngLo().degrees(), 0); in testBasic()
80 assertDoubleNear(d1.lngHi().degrees(), 180); in testBasic()
188 .convolveWithCap(S1Angle.degrees(15)); in testBasic()
194 .convolveWithCap(S1Angle.degrees(15)); in testBasic()
203 .getCapBound().approxEquals(S2Cap.fromAxisAngle(new S2Point(0, 0, 1), S1Angle.degrees(2)))); in testBasic()
208 .approxEquals(S2Cap.fromAxisAngle(new S2Point(0, 0, -1), S1Angle.degrees(80)))); 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()
[all …]
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS1Angle.java27 public double degrees() { in degrees() method in S1Angle
32 return Math.round(degrees() * 1e5); in e5()
36 return Math.round(degrees() * 1e6); in e6()
40 return Math.round(degrees() * 1e7); in e7()
105 public static S1Angle degrees(double degrees) { in degrees() argument
106 return new S1Angle(degrees * (Math.PI / 180)); in degrees()
110 return degrees(e5 * 1e-5); in e5()
116 return degrees(e6 * 1e-6); in e6()
120 return degrees(e7 * 1e-7); in e7()
130 return degrees() + "d"; in toString()
/external/skia/resources/sksl/intrinsics/
DDegrees.sksl6 return (degrees(input.x) == expected.x &&
7 degrees(input.xy) == expected.xy &&
8 degrees(input.xyz) == expected.xyz &&
9 degrees(input.xyzw) == expected.xyzw &&
10 degrees(constVal.x) == expected.x &&
11 degrees(constVal.xy) == expected.xy &&
12 degrees(constVal.xyz) == expected.xyz &&
13 degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
/external/fmtlib/doc/bootstrap/mixins/
Dvendor-prefixes.less152 .rotate(@degrees) {
153 -webkit-transform: rotate(@degrees);
154 -ms-transform: rotate(@degrees); // IE9 only
155 -o-transform: rotate(@degrees);
156 transform: rotate(@degrees);
158 .rotateX(@degrees) {
159 -webkit-transform: rotateX(@degrees);
160 -ms-transform: rotateX(@degrees); // IE9 only
161 -o-transform: rotateX(@degrees);
162 transform: rotateX(@degrees);
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMatrix.java137 protected void setRotate(float degrees, float px, float py) { in setRotate() argument
138 setOps.put(ROTATE, degrees + " " + px + " " + py); in setRotate()
139 simpleMatrix = SimpleMatrix.rotate(degrees, px, py); in setRotate()
143 protected void setRotate(float degrees) { in setRotate() argument
144 setOps.put(ROTATE, Float.toString(degrees)); in setRotate()
145 simpleMatrix = SimpleMatrix.rotate(degrees); in setRotate()
197 protected boolean preRotate(float degrees, float px, float py) { in preRotate() argument
198 preOps.addFirst(ROTATE + " " + degrees + " " + px + " " + py); in preRotate()
199 return preConcat(SimpleMatrix.rotate(degrees, px, py)); in preRotate()
203 protected boolean preRotate(float degrees) { in preRotate() argument
[all …]
/external/skia/tests/sksl/intrinsics/
DDegrees.glsl8 …return ((((((degrees(input.x) == expected.x && degrees(input.xy) == expected.xy) && degrees(input.…
/external/webrtc/modules/video_capture/
Dvideo_capture_impl.cc34 int32_t VideoCaptureImpl::RotationFromDegrees(int degrees, in RotationFromDegrees() argument
36 switch (degrees) { in RotationFromDegrees()
57 int* degrees) { in RotationInDegrees() argument
60 *degrees = 0; in RotationInDegrees()
63 *degrees = 90; in RotationInDegrees()
66 *degrees = 180; in RotationInDegrees()
69 *degrees = 270; in RotationInDegrees()
Dvideo_capture_impl.h50 static int32_t RotationFromDegrees(int degrees, VideoRotation* rotation);
51 static int32_t RotationInDegrees(VideoRotation rotation, int* degrees);
/external/skqp/src/effects/
DSkColorMatrix.cpp95 void SkColorMatrix::setRotate(Axis axis, SkScalar degrees) { in setRotate() argument
98 S = SkScalarSinCos(SkDegreesToRadians(degrees), &C); in setRotate()
120 void SkColorMatrix::preRotate(Axis axis, SkScalar degrees) { in preRotate() argument
122 tmp.setRotate(axis, degrees); in preRotate()
126 void SkColorMatrix::postRotate(Axis axis, SkScalar degrees) { in postRotate() argument
128 tmp.setRotate(axis, degrees); in postRotate()
/external/skqp/include/effects/
DSkColorMatrix.h43 void setRotate(Axis, SkScalar degrees);
45 void preRotate(Axis, SkScalar degrees);
46 void postRotate(Axis, SkScalar degrees);
/external/llvm-project/libclc/generic/lib/common/
Dradians.cl27 _CLC_OVERLOAD _CLC_DEF float radians(float degrees) {
29 return 0x1.1df46ap-6F * degrees;
38 _CLC_OVERLOAD _CLC_DEF double radians(double degrees) {
40 return 0x1.1df46a2529d39p-6 * degrees;
Ddegrees.cl27 _CLC_OVERLOAD _CLC_DEF float degrees(float radians) {
32 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, degrees, float);
38 _CLC_OVERLOAD _CLC_DEF double degrees(double radians) {
43 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, degrees, double);
/external/skia/docs/examples/
DCanvas_drawArc_b.cpp14 for (auto degrees : { 270, 360, 540, 720 } ) { in draw()
15 canvas->drawArc(oval, 0, degrees, false, paint); in draw()
DCanvas_drawArc_a.cpp13 for (auto degrees : { 45, 90, 180, 360} ) { in draw()
14 canvas->drawArc(oval, 0, degrees , useCenter, paint); in draw()
/external/oboe/samples/RhythmGame/third_party/glm/detail/
Dfunc_trigonometric.inl12 GLM_FUNC_QUALIFIER GLM_CONSTEXPR genType radians(genType degrees) argument
16 return degrees * static_cast<genType>(0.01745329251994329576923690768489);
25 // degrees
27 GLM_FUNC_QUALIFIER GLM_CONSTEXPR genType degrees(genType radians) function
29 …GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'degrees' only accept floating-point i…
35 GLM_FUNC_QUALIFIER GLM_CONSTEXPR vecType<T, P> degrees(vecType<T, P> const & v) function
37 return detail::functor1<T, T, P, vecType>::call(degrees, v);
/external/ImageMagick/MagickCore/
Dimage-private.h64 static inline double DegreesToRadians(const double degrees) in DegreesToRadians() argument
66 return((double) (MagickPI*degrees/180.0)); in DegreesToRadians()
/external/skqp/include/atlastext/
DSkAtlasTextTarget.h69 void rotate(SkScalar degrees);
71 void rotate(SkScalar degrees, SkScalar px, SkScalar py);
/external/skqp/src/atlastext/
DSkAtlasTextTarget.cpp64 void SkAtlasTextTarget::rotate(SkScalar degrees) { this->accessCTM()->preRotate(degrees); } in rotate() argument
66 void SkAtlasTextTarget::rotate(SkScalar degrees, SkScalar px, SkScalar py) { in rotate() argument
67 this->accessCTM()->preRotate(degrees, px, py); in rotate()
/external/libyuv/files/docs/
Drotation.md3 Rotation by multiplies of 90 degrees allows mobile devices to rotate webcams from landscape to port…
20 * Rotates by 90, 180 or 270 degrees.
26 Rotate by 90 degrees to 360 x 640.<br>
101 I420Mirror and ARGBMirror can also be used to rotate by 180 degrees by passing a negative height.
/external/skia/modules/svg/src/
DSkSVGFeColorMatrix.cpp56 SkColorMatrix SkSVGFeColorMatrix::MakeHueRotate(SkSVGNumberType degrees) { in MakeHueRotate() argument
57 const SkScalar theta = SkDegreesToRadians(degrees); in MakeHueRotate()
/external/angle/third_party/vulkan-deps/glslang/src/Test/
D300scope.vert72 int degrees;
73 degrees(3.2); // ERROR, use of hidden built-in function
/external/deqp-deps/glslang/Test/
D300scope.vert72 int degrees;
73 degrees(3.2); // ERROR, use of hidden built-in function

12345678910>>...15