Home
last modified time | relevance | path

Searched refs:deg (Results 1 - 23 of 23) sorted by relevance

/third_party/glfw/examples/
H A Dboing.c119 GLfloat TruncateDeg( GLfloat deg ) in TruncateDeg()
121 if ( deg >= 360.f ) in TruncateDeg()
122 return (deg - 360.f); in TruncateDeg()
124 return deg; in TruncateDeg()
131 double deg2rad( double deg ) in deg2rad()
133 return deg / 360 * (2 * M_PI); in deg2rad()
139 double sin_deg( double deg ) in sin_deg()
141 return sin( deg2rad( deg ) ); in sin_deg()
147 double cos_deg( double deg ) in cos_deg()
149 return cos( deg2rad( deg ) ); in cos_deg()
389 GLfloat deg; BounceBall() local
[all...]
/third_party/skia/include/utils/
H A DSkCamera.h81 void rotateX(SkScalar deg);
82 void rotateY(SkScalar deg);
83 void rotateZ(SkScalar deg);
/third_party/skia/src/utils/
H A DSkCamera.cpp204 void Sk3DView::rotateX(SkScalar deg) { in rotateX() argument
205 fRec->fMatrix.preConcat(SkM44::Rotate({1, 0, 0}, deg * SK_ScalarPI / 180)); in rotateX()
208 void Sk3DView::rotateY(SkScalar deg) { in rotateY() argument
209 fRec->fMatrix.preConcat(SkM44::Rotate({0,-1, 0}, deg * SK_ScalarPI / 180)); in rotateY()
212 void Sk3DView::rotateZ(SkScalar deg) { in rotateZ() argument
213 fRec->fMatrix.preConcat(SkM44::Rotate({0, 0, 1}, deg * SK_ScalarPI / 180)); in rotateZ()
/third_party/skia/modules/canvaskit/
H A Dutil.js12 function degreesToRadians(deg) {
13 return (deg / 180) * Math.PI;
/third_party/skia/gm/
H A Daddarc.cpp94 for (SkScalar deg = 0; deg < 360; deg += 10) { in DEF_SIMPLE_GM()
95 const SkScalar rad = SkDegreesToRadians(deg); in DEF_SIMPLE_GM()
101 SkPathMeasure meas(SkPathBuilder().addArc(oval, 0, deg).detach(), false); in DEF_SIMPLE_GM()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DCalendarAstronomer.java758 // double offset = Math.round(fLongitude*12/PI); // p.95 step 6; he _rounds_ to nearest 15 deg.
940 // // add 360 deg to MT. If the object is the Sun, leave the time as it is,
1463 //private static String deg(double rad) {
1668 int deg = (int) (angle*RAD_DEG); in radToDms()
1669 int min = (int)((angle*RAD_DEG - deg) * 60); in radToDms()
1670 int sec = (int)((angle*RAD_DEG - deg - min/60.0) * 3600); in radToDms()
1672 return Integer.toString(deg) + "\u00b0" + min + "'" + sec + "\""; in radToDms()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DCalendarAstronomer.java760 // double offset = Math.round(fLongitude*12/PI); // p.95 step 6; he _rounds_ to nearest 15 deg.
942 // // add 360 deg to MT. If the object is the Sun, leave the time as it is,
1465 //private static String deg(double rad) {
1673 int deg = (int) (angle*RAD_DEG); in radToDms()
1674 int min = (int)((angle*RAD_DEG - deg) * 60); in radToDms()
1675 int sec = (int)((angle*RAD_DEG - deg - min/60.0) * 3600); in radToDms()
1677 return Integer.toString(deg) + "\u00b0" + min + "'" + sec + "\""; in radToDms()
/third_party/skia/include/core/
H A DSkMatrix.h91 /** Sets SkMatrix to rotate by |deg| about a pivot point at (0, 0).
93 @param deg rotation angle in degrees (positive rotates clockwise)
96 static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg) { in RotateDeg() argument
98 m.setRotate(deg); in RotateDeg()
101 static SkMatrix SK_WARN_UNUSED_RESULT RotateDeg(SkScalar deg, SkPoint pt) { in RotateDeg() argument
103 m.setRotate(deg, pt.x(), pt.y()); in RotateDeg()
/third_party/skia/samplecode/
H A DSampleVariableWidthStroker.cpp499 /** Returns a constant (deg 0) distance function for the given stroke width */
894 const int deg = lut[static_cast<uint8_t>(seg.fVerb)];
895 SkASSERT(deg > 0);
896 return deg;
1258 const int deg = E.degree();
1262 ScalarBezCurve left(deg), right(deg);
1265 ScalarBezCurve rl(deg), rr(deg);
1272 path.lineTo(x + dx, -rr[deg]);
[all...]
/third_party/skia/src/core/
H A DSkPicturePlayback.cpp626 auto deg = reader->readScalar(); in handleOp() local
627 canvas->rotate(deg); in handleOp()
/third_party/weex-loader/deps/weex-styler/lib/
H A Dvalidator.js212 var SUPPORT_CSS_ANGLE_UNIT = ["deg", "rad", "grad", "turn"]
/third_party/skia/tools/viewer/
H A DViewer.cpp2062 float deg = fRotation; in drawImGui() local
2063 if (ImGui::SliderFloat("Rotate", &deg, -30, 360, "%.3f deg")) { in drawImGui()
2064 fRotation = deg; in drawImGui()
/third_party/skia/src/sksl/codegen/
H A DSkSLVMCodeGenerator.cpp1150 return unary(args[0], [](skvm::F32 deg) { return deg * (SK_FloatPI / 180); });
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A DOutputASM.cpp1079 Constant deg(5.72957795e+1f, 5.72957795e+1f, 5.72957795e+1f, 5.72957795e+1f); in visitUnary()
1149 case EOpDegrees: if(visit == PostVisit) emit(sw::Shader::OPCODE_MUL, result, arg, &deg); break; in visitUnary()
/third_party/skia/third_party/externals/sfntly/java/lib/
H A Dicu4j-4_8_1_1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/ibm/ com/ibm/icu/ com/ibm/icu/impl/ ...
/third_party/rust/crates/bindgen/bindgen-tests/tests/
H A Dstylo.hpp[all...]
/third_party/typescript/lib/
H A DtypingsInstaller.js[all...]
H A Dtsc.js[all...]
H A Dtsserverlibrary.js[all...]
H A Dtypescript.js[all...]
H A DtypescriptServices.js[all...]
H A Dtsserver.js[all...]
/third_party/node/test/fixtures/snapshot/
H A Dtypescript.js[all...]

Completed in 247 milliseconds