Searched refs:SK_ScalarPI (Results 1 – 25 of 36) sorted by relevance
12
/external/skia/gm/ |
D | stringart.cpp | 36 SkScalar angle = kAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDraw() 50 length += angle / SkScalarHalf(SK_ScalarPI); in onDraw()
|
D | hairmodes.cpp | 52 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()
|
D | pathfill.cpp | 77 SkScalar rad = -SK_ScalarPI / 2; in make_star() 78 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
|
D | smallpaths.cpp | 45 SkScalar rad = -SK_ScalarPI / 2; in make_star() 46 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
|
D | dashcircle.cpp | 37 SkScalar circumference = radius * SK_ScalarPI * 2;
|
D | polygons.cpp | 51 SkScalar angle = 2 * SK_ScalarPI * i / SK_ARRAY_COUNT(p4); in onOnceBeforeDraw()
|
D | dashing.cpp | 103 SkScalar rad = -SK_ScalarPI / 2; in make_unit_star() 104 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_unit_star()
|
D | hairlines.cpp | 33 SkScalar angle = SK_ScalarPI * SkIntToScalar(i) / kNumAngles; in onOnceBeforeDraw()
|
/external/skia/samplecode/ |
D | SampleStringArt.cpp | 33 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent() 47 length += angle / SkScalarHalf(SK_ScalarPI); in onDrawContent()
|
D | SampleLighting.cpp | 18 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()
|
D | SampleMegaStroke.cpp | 66 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent() 67 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
|
D | SampleHairModes.cpp | 54 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()
|
D | SamplePathFill.cpp | 79 SkScalar rad = -SK_ScalarPI / 2; in make_star() 80 const SkScalar drad = (n >> 1) * SK_ScalarPI * 2 / n; in make_star()
|
D | SampleShip.cpp | 73 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()
|
D | SampleAnimBlur.cpp | 20 t *= SkScalarToFloat(2 * SK_ScalarPI) / periodInSec; in get_anim_sin()
|
D | SampleVertices.cpp | 177 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()
|
D | SampleCircle.cpp | 81 SkScalar step = SK_ScalarPI * 2 / n; in make_poly()
|
D | SampleAtlas.cpp | 110 fRadian = SkScalarMod(fRadian, 2 * SK_ScalarPI); in advance()
|
/external/skia/include/core/ |
D | SkScalar.h | 27 #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/ |
D | PathOpsAngleIdeas.cpp | 106 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/ |
D | glfw_main.cpp | 106 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/ |
D | SkBitmapFilter.h | 184 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/ |
D | GrDrawAtlasBatch.cpp | 207 static const SkScalar kMinRotate = -SK_ScalarPI; in random_xform() 208 static const SkScalar kMaxRotate = SK_ScalarPI; in random_xform()
|
/external/skia/bench/ |
D | DashBench.cpp | 143 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/ |
D | SkSweepGradient.cpp | 70 result += 2 * SK_ScalarPI; in SkATan2_255()
|
12