Home
last modified time | relevance | path

Searched refs:SkDegreesToRadians (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/docs/examples/
DSkPath_arcto_conic_parametric.cpp43 float weight = cos(SkDegreesToRadians(sweepAngle) / 2); in draw()
44 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw()
45 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
47 SkPoint p1 = {d * SkScalarCos(SkDegreesToRadians(middleAngle)), in draw()
48 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw()
49 SkPoint p2 = {r * SkScalarCos(SkDegreesToRadians(finalAngle)), in draw()
50 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
DSkPath_arcto_conic_parametric2.cpp61 float weight = cos(SkDegreesToRadians(sweepAngle) / 2); in draw()
62 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw()
63 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
65 SkPoint p1 = {d * SkScalarCos(SkDegreesToRadians(middleAngle)), in draw()
66 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw()
67 SkPoint p2 = {r * SkScalarCos(SkDegreesToRadians(finalAngle)), in draw()
68 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
/third_party/skia/gm/
Dmandoline.cpp173 mandoline.reset({-cosf(SkDegreesToRadians(-60)), sinf(SkDegreesToRadians(-60))}); in onDraw()
175 {-cosf(SkDegreesToRadians(60)), sinf(SkDegreesToRadians(60))}, .5f); in onDraw()
176 mandoline.sliceConic({-cosf(SkDegreesToRadians(120))*2, sinf(SkDegreesToRadians(120))*2}, in onDraw()
179 mandoline.sliceLine({-cosf(SkDegreesToRadians(-60)), sinf(SkDegreesToRadians(-60))}); in onDraw()
Dhairlines.cpp130 SkPoint p0 = { kRad * SkScalarCos(SkDegreesToRadians(kStartAngle)), in onOnceBeforeDraw()
131 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle)) }; in onOnceBeforeDraw()
133 SkPoint p1 = { kRad * SkScalarCos(SkDegreesToRadians(kStartAngle + kSweepAngle)), in onOnceBeforeDraw()
134 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle + kSweepAngle)) }; in onOnceBeforeDraw()
Dlighting.cpp71 SkScalar sinAzimuth = SkScalarSin(SkDegreesToRadians(fAzimuth)), in onDraw()
72 cosAzimuth = SkScalarCos(SkDegreesToRadians(fAzimuth)); in onDraw()
86 SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in onDraw()
Dconvex_all_line_paths.cpp31 pts[i].fX = -SkScalarSin(SkDegreesToRadians(angle)) * width; in create_ngon()
32 pts[i].fY = SkScalarCos(SkDegreesToRadians(angle)) * height; in create_ngon()
Dpolygonoffset.cpp37 pts[i].fX = -SkScalarSin(SkDegreesToRadians(angle)) * w; in create_ngon()
38 pts[i].fY = SkScalarCos(SkDegreesToRadians(angle)) * h; in create_ngon()
Dcrbug_224618.cpp85 SkDegreesToRadians(axisAngles[i].w)); in onDraw()
Dpostercircle.cpp124 * SkM44::Rotate({0,1,0}, SkDegreesToRadians(yRotation)) in onDraw()
Dimagemakewithfilter.cpp150 SkScalar sinAzimuth = SkScalarSin(SkDegreesToRadians(225.f)), in lighting_factory()
151 cosAzimuth = SkScalarCos(SkDegreesToRadians(225.f)); in lighting_factory()
/third_party/skia/modules/skottie/src/
DTransform.cpp49 sk = -SkDegreesToRadians(SkTPin(sk, -kMaxSkewAngle, kMaxSkewAngle)); in totalMatrix()
50 sa = SkDegreesToRadians(sa); in totalMatrix()
184 * SkM44::Rotate({ 1, 0, 0 }, SkDegreesToRadians(rotation.x)) in totalMatrix()
185 * SkM44::Rotate({ 0, 1, 0 }, SkDegreesToRadians(rotation.y)) in totalMatrix()
186 * SkM44::Rotate({ 0, 0, 1 }, SkDegreesToRadians(rotation.z)) in totalMatrix()
DCamera.cpp26 const auto cam_t = SkM44::Rotate({0, 0, 1}, SkDegreesToRadians(-rotation.z)) in ComputeCameraMatrix()
27 * SkM44::Rotate({0, 1, 0}, SkDegreesToRadians( rotation.y)) in ComputeCameraMatrix()
28 * SkM44::Rotate({1, 0, 0}, SkDegreesToRadians( rotation.x)) in ComputeCameraMatrix()
/third_party/skia/tests/
DTracingTest.cpp118 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
129 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
142 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
/third_party/skia/modules/svg/src/
DSkSVGFeLightSource.cpp17 const float azimuthRad = SkDegreesToRadians(fAzimuth); in computeDirection()
18 const float elevationRad = SkDegreesToRadians(fElevation); in computeDirection()
DSkSVGFeColorMatrix.cpp57 const SkScalar theta = SkDegreesToRadians(degrees); in MakeHueRotate()
/third_party/skia/modules/skottie/src/effects/
DSphereEffect.cpp347 const SkM44 rx = SkM44::Rotate({1,0,0}, SkDegreesToRadians( x)), in onSync()
348 ry = SkM44::Rotate({0,1,0}, SkDegreesToRadians( y)), in onSync()
349 rz = SkM44::Rotate({0,0,1}, SkDegreesToRadians(-z)); in onSync()
387 SkDegreesToRadians(fLightDirection - 90) in onSync()
DDropShadowEffect.cpp60 const auto rad = SkDegreesToRadians(90 - fDirection); in onSync()
DLinearWipeEffect.cpp69 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
DShadowStyles.cpp44 const auto rad = SkDegreesToRadians(180 + fAngle), // 0deg -> left (style) in onSync()
DVenetianBlindsEffect.cpp69 angle = SkDegreesToRadians(-fDirection), in onMakeMask()
/third_party/skia/bench/
DLightingBench.cpp38 static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225)); in GetDistantDirection()
39 static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in GetDistantDirection()
DMatrix44Bench.cpp174 fM = SkM44::Rotate({0.f, 0.f, 1.f}, SkDegreesToRadians(45.f)); in MapRectBench()
/third_party/skia/modules/skottie/src/layers/shapelayer/
DPolystar.cpp56 auto angle = SkDegreesToRadians(fRotation - 90); in onSync()
/third_party/skia/modules/skottie/src/text/
DTextAdapter.cpp715 * SkM44::Rotate({ 1, 0, 0 }, SkDegreesToRadians(props.rotation.x)) in pushPropsToFragment()
716 * SkM44::Rotate({ 0, 1, 0 }, SkDegreesToRadians(props.rotation.y)) in pushPropsToFragment()
717 * SkM44::Rotate({ 0, 0, 1 }, SkDegreesToRadians(props.rotation.z)) in pushPropsToFragment()
/third_party/skia/include/core/
DSkScalar.h112 #define SkDegreesToRadians(degrees) ((degrees) * (SK_ScalarPI / 180)) macro

12