Home
last modified time | relevance | path

Searched refs:SK_ScalarPI (Results 1 – 25 of 36) sorted by relevance

12

/external/skia/gm/
Dstringart.cpp36 SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDraw()
50 length += angle / SkScalarHalf(SK_ScalarPI); in onDraw()
Dhairmodes.cpp52 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
53 SkScalar y = SkScalarSin(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gHeight; in drawCell()
Dpathfill.cpp77 SkScalar rad = -SK_ScalarPI / 2; in make_star()
78 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
Dsmallpaths.cpp45 SkScalar rad = -SK_ScalarPI / 2; in make_star()
46 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
Ddashcircle.cpp37 SkScalar circumference = radius * SK_ScalarPI * 2;
Dpolygons.cpp51 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); in onOnceBeforeDraw()
Ddashing.cpp103 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star()
104 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_unit_star()
Dhairlines.cpp33 SkScalar angle = SK_ScalarPI * SkIntToScalar(i) / kNumAngles; in onOnceBeforeDraw()
/external/skia/samplecode/
DSampleStringArt.cpp33 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
47 length += angle / SkScalarHalf(SK_ScalarPI); in onDrawContent()
DSampleLighting.cpp18 const SkVector3 dir = SkVector3::Make(SkScalarSin(angle)*SkScalarSin(SK_ScalarPI*0.25f), in create_lights()
19 SkScalarCos(angle)*SkScalarSin(SK_ScalarPI*0.25f), in create_lights()
20 SkScalarCos(SK_ScalarPI*0.25f)); in create_lights()
DSampleMegaStroke.cpp66 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
67 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
DSampleHairModes.cpp54 SkScalar x = SkScalarCos(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gWidth; in drawCell()
55 SkScalar y = SkScalarSin(SkIntToScalar(angle) * (SK_ScalarPI * 2) / 24) * gHeight; in drawCell()
DSamplePathFill.cpp79 SkScalar rad = -SK_ScalarPI / 2; in make_star()
80 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
DSampleShip.cpp73 fXform[currIndex] = SkRSXform::MakeFromRadians(0.1f, SK_ScalarPI*0.5f, in DrawShipView()
81 fXform[currIndex] = SkRSXform::MakeFromRadians(0.5f, SK_ScalarPI*0.5f, in DrawShipView()
DSampleAnimBlur.cpp20 t *= SkScalarToFloat(2 * SK_ScalarPI) / periodInSec; in get_anim_sin()
DSampleVertices.cpp177 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); in make_fan()
205 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); in make_strip()
DSampleCircle.cpp81 SkScalar step = SK_ScalarPI * 2 / n; in make_poly()
DSampleAtlas.cpp110 fRadian = SkScalarMod(fRadian, 2 * SK_ScalarPI); in advance()
/external/skia/include/core/
DSkScalar.h27 #define SK_ScalarPI 3.14159265f macro
70 #define SK_ScalarPI 3.141592653589793 macro
193 #define SkDegreesToRadians(degrees) ((degrees) * (SK_ScalarPI / 180))
194 #define SkRadiansToDegrees(radians) ((radians) * (180 / SK_ScalarPI))
/external/skia/tests/
DPathOpsAngleIdeas.cpp106 double angle = (atan2(pt.fY, pt.fX) + SK_ScalarPI) * 8 / (SK_ScalarPI * 2); in quadAngle()
210 if (sweep > SK_ScalarPI) { in radianSweep()
211 sweep -= 2 * SK_ScalarPI; in radianSweep()
212 } else if (sweep < -SK_ScalarPI) { in radianSweep()
213 sweep += 2 * SK_ScalarPI; in radianSweep()
442 bool realMatchesOverlap = realOverlap == overlap || SK_ScalarPI - fabs(a2s - a1s) < 0.002; in testQuadAngles()
444 SkDebugf("\nSK_ScalarPI - fabs(a2s - a1s) = %1.9g\n", SK_ScalarPI - fabs(a2s - a1s)); in testQuadAngles()
/external/skia/experimental/GLFWTest/
Dglfw_main.cpp106 xform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f, in main()
112 xform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f, in main()
/external/skia/src/core/
DSkBitmapFilter.h184 const float xpi = x * static_cast<float>(SK_ScalarPI); in evaluate()
202 float xpi = x * static_cast<float>(SK_ScalarPI); in evaluate()
/external/skia/src/gpu/batches/
DGrDrawAtlasBatch.cpp207 static const SkScalar kMinRotate = -SK_ScalarPI; in random_xform()
208 static const SkScalar kMaxRotate = SK_ScalarPI; in random_xform()
/external/skia/bench/
DDashBench.cpp143 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star()
144 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_unit_star()
/external/skia/src/effects/gradients/
DSkSweepGradient.cpp70 result += 2 * SK_ScalarPI; in SkATan2_255()

12