Home
last modified time | relevance | path

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

123

/external/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()
/external/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()
Dcrbug_224618.cpp85 SkDegreesToRadians(axisAngles[i].w)); in onDraw()
Dpolygonoffset.cpp37 pts[i].fX = -SkScalarSin(SkDegreesToRadians(angle)) * w; in create_ngon()
38 pts[i].fY = SkScalarCos(SkDegreesToRadians(angle)) * h; in create_ngon()
/external/skqp/gm/
Dmandoline.cpp167 mandoline.reset({-cosf(SkDegreesToRadians(-60)), sinf(SkDegreesToRadians(-60))}); in onDraw()
169 {-cosf(SkDegreesToRadians(60)), sinf(SkDegreesToRadians(60))}, .5f); in onDraw()
170 mandoline.sliceConic({-cosf(SkDegreesToRadians(120))*2, sinf(SkDegreesToRadians(120))*2}, in onDraw()
173 mandoline.sliceLine({-cosf(SkDegreesToRadians(-60)), sinf(SkDegreesToRadians(-60))}); in onDraw()
Dlighting.cpp64 SkScalar sinAzimuth = SkScalarSinCos(SkDegreesToRadians(fAzimuth), &cosAzimuth); in onDraw()
75 SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in onDraw()
Dhairlines.cpp152 SkScalar cosV, sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle), &cosV); in onOnceBeforeDraw()
156 sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle + kSweepAngle), &cosV); in onOnceBeforeDraw()
/external/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()
/external/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()
/external/skqp/tests/
DTracingTest.cpp117 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
128 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
143 SkScalar rad = SkDegreesToRadians(SkIntToScalar(i)); in test_trace_counters()
/external/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()
/external/skia/modules/skottie/src/effects/
DSphereEffect.cpp345 const SkM44 rx = SkM44::Rotate({1,0,0}, SkDegreesToRadians( x)), in onSync()
346 ry = SkM44::Rotate({0,1,0}, SkDegreesToRadians( y)), in onSync()
347 rz = SkM44::Rotate({0,0,1}, SkDegreesToRadians(-z)); in onSync()
385 SkDegreesToRadians(fLightDirection - 90) in onSync()
DDropShadowEffect.cpp60 const auto rad = SkDegreesToRadians(90 - fDirection); in onSync()
DLinearWipeEffect.cpp69 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
/external/skqp/bench/
DLightingBench.cpp38 static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225)); in GetDistantDirection()
39 static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in GetDistantDirection()
/external/skia/bench/
DLightingBench.cpp38 static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225)); in GetDistantDirection()
39 static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in GetDistantDirection()
/external/skqp/src/utils/
DSkCamera.cpp110 s = SkScalarSinCos(SkDegreesToRadians(degX), &c); in setRotateX()
119 s = SkScalarSinCos(SkDegreesToRadians(degY), &c); in setRotateY()
128 s = SkScalarSinCos(SkDegreesToRadians(degZ), &c); in setRotateZ()
/external/skia/modules/skottie/src/layers/shapelayer/
DPolystar.cpp56 auto angle = SkDegreesToRadians(fRotation - 90); in onSync()
/external/skia/modules/skottie/src/text/
DTextAdapter.cpp478 * SkM44::Rotate({ 1, 0, 0 }, SkDegreesToRadians(props.rotation.x)) in pushPropsToFragment()
479 * SkM44::Rotate({ 0, 1, 0 }, SkDegreesToRadians(props.rotation.y)) in pushPropsToFragment()
480 * SkM44::Rotate({ 0, 0, 1 }, SkDegreesToRadians(props.rotation.z)) in pushPropsToFragment()

123