Home
last modified time | relevance | path

Searched refs:SkScalarCos (Results 1 – 25 of 50) sorted by relevance

12

/external/skia/bench/
DPolyUtilsBench.cpp130 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
132 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
155 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
181 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
204 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
229 *poly->append() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
DLightingBench.cpp41 SkScalarCos(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection()
42 SkScalarSin(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection()
/external/skia/docs/examples/
DSkPath_arcto_conic_parametric.cpp44 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw()
47 SkPoint p1 = {d * SkScalarCos(SkDegreesToRadians(middleAngle)), in draw()
49 SkPoint p2 = {r * SkScalarCos(SkDegreesToRadians(finalAngle)), in draw()
DSkPath_arcto_conic_parametric2.cpp62 SkPoint p0 = {r * SkScalarCos(SkDegreesToRadians(startAngle)), in draw()
65 SkPoint p1 = {d * SkScalarCos(SkDegreesToRadians(middleAngle)), in draw()
67 SkPoint p2 = {r * SkScalarCos(SkDegreesToRadians(finalAngle)), in draw()
DPath_rCubicTo.cpp14 sy = SkScalarCos(i * SK_ScalarPI / 8); in draw()
DPath_incReserve.cpp11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
DCanvas_drawTextRSXform.cpp14 const SkScalar c = SkScalarCos(angle) * scale; in draw()
/external/skia/tests/
DTracingTest.cpp140 TRACE_COUNTER1("skia", "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
154 "cos", SkScalarCos(rad) * 1000.0f + 1000.0f); in test_trace_counters()
/external/skia/gm/
Dstrokedlines.cpp45 cos = SkScalarCos(angle + (SK_ScalarPI/4)); in draw_fins()
56 cos = SkScalarCos(angle - (SK_ScalarPI/4)); in draw_fins()
74 cos = SkScalarCos(angle); in draw_snowflake()
Dlighting.cpp72 cosAzimuth = SkScalarCos(SkDegreesToRadians(fAzimuth)); in onDraw()
88 SkPoint3 distantDirection = SkPoint3::Make(cosAzimuth * SkScalarCos(elevationRad), in onDraw()
89 sinAzimuth * SkScalarCos(elevationRad), in onDraw()
Dhairlines.cpp42 SkScalar x = kRadius * SkScalarCos(angle); in onOnceBeforeDraw()
130 SkPoint p0 = { kRad * SkScalarCos(SkDegreesToRadians(kStartAngle)), in onOnceBeforeDraw()
133 SkPoint p1 = { kRad * SkScalarCos(SkDegreesToRadians(kStartAngle + kSweepAngle)), in onOnceBeforeDraw()
Dcrbug_1086705.cpp26 circleVertices[i] = {100.f + 2.f * SkScalarCos(angleRads),
Dconvexpolyeffect.cpp71 SkPoint point = { SkScalarCos(angle), SkScalarSin(angle) }; in onOnceBeforeDraw()
Dstringart.cpp55 SkPoint rp = SkPoint::Make(length*SkScalarCos(step) + center.fX, in onDraw()
Dhairmodes.cpp61 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
Daaa.cpp106 builder.lineTo(C + R * SkScalarCos(a), C + R * SkScalarSin(a)); in DEF_SIMPLE_GM()
Dsharedcorners.cpp102 pts.push_back({SkScalarCos(theta), SkScalarSin(theta)}); in onDraw()
Dpolygons.cpp58 p4[i].set(20 * SkScalarCos(angle) + 20, 20 * SkScalarSin(angle) + 20); in onOnceBeforeDraw()
/external/skia/include/core/
DSkScalar.h44 #define SkScalarCos(radians) (float)sk_float_cos(radians) macro
133 float v = SkScalarCos(radians); in SkScalarCosSnapToZero()
DSkRSXform.h36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
/external/skia/tools/viewer/
DMegaStrokeSlide.cpp50 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in draw()
DStringArtSlide.cpp38 SkPoint rp = SkPoint::Make(length*SkScalarCos(step) + center.fX, in draw()
/external/skia/modules/skottie/src/effects/
DDropShadowEffect.cpp61 fDropShadow->setOffset(SkVector::Make( fDistance * SkScalarCos(rad), in onSync()
DShadowStyles.cpp48 const auto offset = SkV2{ fDistance * SkScalarCos(rad), in onSync()
/external/skia/modules/svg/src/
DSkSVGFeColorMatrix.cpp58 const SkSVGNumberType c = SkScalarCos(theta); in MakeHueRotate()

12