/external/skia/docs/examples/ |
D | SkPath_arcto_conic_parametric.cpp | 43 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()
|
D | SkPath_arcto_conic_parametric2.cpp | 61 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/ |
D | mandoline.cpp | 173 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()
|
D | hairlines.cpp | 130 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()
|
D | lighting.cpp | 71 SkScalar sinAzimuth = SkScalarSin(SkDegreesToRadians(fAzimuth)), in onDraw() 72 cosAzimuth = SkScalarCos(SkDegreesToRadians(fAzimuth)); in onDraw() 86 SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in onDraw()
|
D | convex_all_line_paths.cpp | 31 pts[i].fX = -SkScalarSin(SkDegreesToRadians(angle)) * width; in create_ngon() 32 pts[i].fY = SkScalarCos(SkDegreesToRadians(angle)) * height; in create_ngon()
|
D | crbug_224618.cpp | 85 SkDegreesToRadians(axisAngles[i].w)); in onDraw()
|
D | polygonoffset.cpp | 37 pts[i].fX = -SkScalarSin(SkDegreesToRadians(angle)) * w; in create_ngon() 38 pts[i].fY = SkScalarCos(SkDegreesToRadians(angle)) * h; in create_ngon()
|
/external/skqp/gm/ |
D | mandoline.cpp | 167 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()
|
D | lighting.cpp | 64 SkScalar sinAzimuth = SkScalarSinCos(SkDegreesToRadians(fAzimuth), &cosAzimuth); in onDraw() 75 SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in onDraw()
|
D | hairlines.cpp | 152 SkScalar cosV, sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle), &cosV); in onOnceBeforeDraw() 156 sinV = SkScalarSinCos(SkDegreesToRadians(kStartAngle + kSweepAngle), &cosV); in onOnceBeforeDraw()
|
/external/skia/modules/skottie/src/ |
D | Transform.cpp | 49 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()
|
D | Camera.cpp | 26 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/ |
D | TracingTest.cpp | 118 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/ |
D | TracingTest.cpp | 117 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/ |
D | SkSVGFeLightSource.cpp | 17 const float azimuthRad = SkDegreesToRadians(fAzimuth); in computeDirection() 18 const float elevationRad = SkDegreesToRadians(fElevation); in computeDirection()
|
D | SkSVGFeColorMatrix.cpp | 57 const SkScalar theta = SkDegreesToRadians(degrees); in MakeHueRotate()
|
/external/skia/modules/skottie/src/effects/ |
D | SphereEffect.cpp | 345 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()
|
D | DropShadowEffect.cpp | 60 const auto rad = SkDegreesToRadians(90 - fDirection); in onSync()
|
D | LinearWipeEffect.cpp | 69 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
|
/external/skqp/bench/ |
D | LightingBench.cpp | 38 static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225)); in GetDistantDirection() 39 static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in GetDistantDirection()
|
/external/skia/bench/ |
D | LightingBench.cpp | 38 static SkScalar azimuthRad = SkDegreesToRadians(SkIntToScalar(225)); in GetDistantDirection() 39 static SkScalar elevationRad = SkDegreesToRadians(SkIntToScalar(5)); in GetDistantDirection()
|
/external/skqp/src/utils/ |
D | SkCamera.cpp | 110 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/ |
D | Polystar.cpp | 56 auto angle = SkDegreesToRadians(fRotation - 90); in onSync()
|
/external/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 478 * 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()
|