Home
last modified time | relevance | path

Searched refs:SkScalarSin (Results 1 – 25 of 74) sorted by relevance

123

/external/skia/tests/
DTracingTest.cpp81 gTracingTestWorkSink += SkScalarSin(i); in do_work()
119 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
130 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
144 "sin", SkScalarSin(rad) * 1000.0f + 1000.0f, in test_trace_counters()
/external/skqp/samplecode/
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()
DSampleAndroidShadows.cpp307 SkScalarSin(radians), in onDrawContent()
308 SkTMax(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent()
322 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent()
324 SkTMax(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
337 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent()
339 SkTMax(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
DSampleStringArt.cpp44 length*SkScalarSin(step) + center.fY); in onDrawContent()
/external/skia/bench/
DPolyUtilsBench.cpp124 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r1, c + SkScalarSin(rad) * r1); in makePoly()
126 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r2, c + SkScalarSin(rad) * r2); in makePoly()
149 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
175 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
198 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
223 *poly->push() = SkPoint::Make(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in makePoly()
DLightingBench.cpp42 SkScalarSin(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection()
43 SkScalarSin(elevationRad)); in GetDistantDirection()
/external/skia/samplecode/
DSampleAndroidShadows.cpp283 SkScalarSin(radians), in onDrawContent()
284 std::max(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent()
298 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent()
300 std::max(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
313 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent()
315 std::max(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
DSampleStringArt.cpp38 length*SkScalarSin(step) + center.fY); in onDrawContent()
DSampleVertices.cpp156 sin = SkScalarSin(r), in make_fan()
185 sin = SkScalarSin(r), in make_strip()
/external/skia/docs/examples/
DSkPath_arcto_conic_parametric.cpp45 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
48 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw()
50 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
DSkPath_arcto_conic_parametric2.cpp63 r * SkScalarSin(SkDegreesToRadians(startAngle))}; in draw()
66 d * SkScalarSin(SkDegreesToRadians(middleAngle))}; in draw()
68 r * SkScalarSin(SkDegreesToRadians(finalAngle))}; in draw()
DPath_rCubicTo.cpp13 SkScalar sx = SkScalarSin(i * SK_ScalarPI / 8), in draw()
DPath_incReserve.cpp11 path->lineTo(SkScalarCos(rad) * size, SkScalarSin(rad) * size); in draw()
DCanvas_drawTextRSXform.cpp13 const SkScalar s = SkScalarSin(angle) * scale; in draw()
DMiter_Limit.cpp12 SkScalar miterLimit = 1 / SkScalarSin((angle2 - angle1) / 2); in draw()
/external/skqp/tests/
DTracingTest.cpp80 gTracingTestWorkSink += SkScalarSin(i); in do_work()
118 TRACE_COUNTER1("skia", "sin", SkScalarSin(rad) * 1000.0f + 1000.0f); in test_trace_counters()
/external/skia/gm/
Dstrokedlines.cpp44 sin = SkScalarSin(angle + (SK_ScalarPI/4)); in draw_fins()
55 sin = SkScalarSin(angle - (SK_ScalarPI/4)); in draw_fins()
73 sin = SkScalarSin(angle); in draw_snowflake()
Dhairlines.cpp43 SkScalar y = kRadius * SkScalarSin(angle); in onOnceBeforeDraw()
131 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle)) }; in onOnceBeforeDraw()
134 kRad * SkScalarSin(SkDegreesToRadians(kStartAngle + kSweepAngle)) }; in onOnceBeforeDraw()
Dcrbug_1086705.cpp27 100.f + 2.f * SkScalarSin(angleRads)};
Dlighting.cpp71 SkScalar sinAzimuth = SkScalarSin(SkDegreesToRadians(fAzimuth)), in onDraw()
90 SkScalarSin(elevationRad)); in onDraw()
Ddrawatlas.cpp93 xform->fSSin = fScale * SkScalarSin(rad); in onDraw()
250 scale = SkScalarSin(i * SK_ScalarPI / (len-1)) * 0.75f + 0.5f;
288 scale = SkScalarSin(i * SK_ScalarPI / (len-1)) * 0.75f + 0.5f;
/external/skqp/bench/
DLightingBench.cpp42 SkScalarSin(azimuthRad) * SkScalarCos(elevationRad), in GetDistantDirection()
43 SkScalarSin(elevationRad)); in GetDistantDirection()
/external/skia/include/core/
DSkScalar.h44 #define SkScalarSin(radians) (float)sk_float_sin(radians) macro
149 float v = SkScalarSin(radians); in SkScalarSinSnapToZero()
DSkRSXform.h35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians()
/external/skqp/include/core/
DSkRSXform.h35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians()

123