Home
last modified time | relevance | path

Searched refs:fAngle (Results 1 – 22 of 22) sorted by relevance

/external/skia/samplecode/
DSampleMegaStroke.cpp17 fAngle = 0; in MegaStrokeView()
54 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
55 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
58 fAngle += 5; in onDrawContent()
60 fAngle -= 5; in onDrawContent()
77 int fAngle; member in MegaStrokeView
DSampleStringArt.cpp20 StringArtView() : fAngle(0.305f) {} in StringArtView()
26 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
54 fAngle = x/width(); in onFindClickHandler()
59 SkScalar fAngle; member in StringArtView
DSample3D.cpp48 SkScalar fAngle; member
87 float fAngle = SK_ScalarPI / 12; member in Sample3DView
89 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
96 perspective = SkM44::Perspective(fNear, fFar, fAngle), in concatCamera()
171 SkScalar fAngle = 0, member in RotateAnimator
185 fPrevAngle = fAngle; in update()
186 fAngle = angle; in update()
201 fAngle += delta; in rotation()
207 return SkM44::Rotate(fAxis, fAngle); in rotation()
213 fAngleSpeed = (fAngle - fPrevAngle) / (fNow - fPrevNow); in start()
[all …]
DSampleThinAA.cpp277 fAngle = 0.f; in onOnceBeforeDraw()
299 " to 0, 'space' adds 15)", fAngle), 0, 36, font, text); in onDrawContent()
362 SkScalar newAngle = fAngle + dt * 15.f; in onAnimate()
363 bool completed = SkScalarMod(newAngle, 15.f) < SkScalarMod(fAngle, 15.f); in onAnimate()
364 fAngle = SkScalarMod(newAngle, 360.f); in onAnimate()
367 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
406 case 'u': fAngle = 0.f; return true; in onChar()
407 case 'y': fAngle = 90.f; return true; in onChar()
408 case ' ': fAngle = SkScalarMod(fAngle + 15.f, 360.f); return true; in onChar()
439 SkScalar fAngle; member in skiagm::ThinAASample
[all …]
DSampleLayers.cpp177 SkScalar fAngle; member in BackdropView
183 fAngle = 0; in BackdropView()
199 m.setRotate(fAngle); in onDrawContent()
214 fAngle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 5, 360)); in onAnimate()
DSamplePatch.cpp208 SkScalar fAngle = 0; member
277 m.setRotate(fAngle); in onDrawContent()
285 fAngle = TimeUtils::Scaled(1e-9 * nanos, 60, 360); in onAnimate()
DSampleClip.cpp433 float fAngle = SK_ScalarPI / 4; member in SampleCameraView
435 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
460 perspective = SkM44::Perspective(fNear, fFar, fAngle), in get44()
/external/skqp/samplecode/
DSampleMegaStroke.cpp17 fAngle = 0; in MegaStrokeView()
63 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
64 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
67 fAngle += 5; in onDrawContent()
69 fAngle -= 5; in onDrawContent()
88 int fAngle; member in MegaStrokeView
DSampleStringArt.cpp20 StringArtView() : fAngle(0.305f) {} in StringArtView()
32 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
60 fAngle = x/width(); in onFindClickHandler()
65 SkScalar fAngle; member in StringArtView
DSampleThinAA.cpp275 fAngle = 0.f; in onOnceBeforeDraw()
297 " to 0, 'space' adds 15)", fAngle), 0, 36, font, text); in onDrawContent()
360 SkScalar newAngle = fAngle + dt * 15.f; in onAnimate()
361 bool completed = SkScalarMod(newAngle, 15.f) < SkScalarMod(fAngle, 15.f); in onAnimate()
362 fAngle = SkScalarMod(newAngle, 360.f); in onAnimate()
365 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
409 case 'u': fAngle = 0.f; return true; in onQuery()
410 case 'y': fAngle = 90.f; return true; in onQuery()
411 case ' ': fAngle = SkScalarMod(fAngle + 15.f, 360.f); return true; in onQuery()
443 SkScalar fAngle; member in skiagm::ThinAASample
[all …]
DSampleFilterQuality.cpp142 AnimValue fScale, fAngle; member in FilterQualityView
153 fAngle.setMod(0, 360); in FilterQualityView()
177 case '1': fAngle.inc(-ANGLE_DELTA); return true; in onQuery()
178 case '2': fAngle.inc( ANGLE_DELTA); return true; in onQuery()
200 canvas->rotate(fAngle); in drawTheImage()
281 canvas->drawString(SkStringPrintf("%.8g", (float)fAngle), textX, 150, font, paint); in onDrawContent()
DSampleLayers.cpp192 SkScalar fAngle; member in BackdropView
198 fAngle = 0; in BackdropView()
220 m.setRotate(fAngle); in onDrawContent()
235 fAngle = SkDoubleToScalar(fmod(timer.secs() * 360 / 5, 360)); in onAnimate()
DSamplePatch.cpp206 SkScalar fAngle; member in PatchView
213 PatchView() : fAngle(0) { in PatchView()
288 m.setRotate(fAngle); in onDrawContent()
296 fAngle = timer.scaled(60, 360); in onAnimate()
/external/skia/gm/
D3d.cpp15 float fAngle = SK_ScalarPI / 4; member
17 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
36 perspective = SkM44::Perspective(info.fNear, info.fFar, info.fAngle); in make_ctm()
/external/skia/modules/skottie/src/effects/
DLinearWipeEffect.cpp51 .bind( kAngle_Index, fAngle ) in LinearWipeAdapter()
69 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
112 fAngle = 0, member in skottie::internal::__anonf00a707d0111::LinearWipeAdapter
DShadowStyles.cpp37 this->bind(abuilder, jstyle["a"], fAngle); in ShadowAdapter()
44 const auto rad = SkDegreesToRadians(180 + fAngle), // 0deg -> left (style) in onSync()
109 fAngle = 0, // degrees member in skottie::internal::__anonfee179aa0111::ShadowAdapter
/external/skia/platform_tools/android/apps/androidkitdemo/src/main/java/org/skia/androidkitdemo1/
DCubeActivity.java46 private float fAngle = (float)Math.PI / 12; field in CubeRenderThread
47 private float eyeZ = (float)(1.0f/tan(fAngle/2) - 1);
50 private Matrix perspective = Matrix.makePerspective(0.05f, 4, fAngle);
/external/skqp/gm/
D3dgm.cpp31 float fAngle = SK_ScalarPI / 4; member in GM3d
123 Sk3Perspective(&perspective, fNear, fFar, fAngle); in onDraw()
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dquaternion.inl156 T fAngle = atan(fSin, fCos); local
158 k0 = sin((static_cast<T>(1) - a) * fAngle) * fOneOverSin;
159 k1 = sin((static_cast<T>(0) + a) * fAngle) * fOneOverSin;
/external/skia/tests/
DPathOpsDebug.cpp860 const SkOpAngle* fAngle = span->fromAngle(); in dumpAngles() local
862 if (fAngle) { in dumpAngles()
863 SkDebugf(" span=%d from=%d ", span->debugID(), fAngle->debugID()); in dumpAngles()
864 fAngle->dumpTo(this, tAngle); in dumpAngles()
868 tAngle->dumpTo(this, fAngle); in dumpAngles()
/external/skqp/tests/
DPathOpsDebug.cpp860 const SkOpAngle* fAngle = span->fromAngle(); in dumpAngles() local
862 if (fAngle) { in dumpAngles()
863 SkDebugf(" span=%d from=%d ", span->debugID(), fAngle->debugID()); in dumpAngles()
864 fAngle->dumpTo(this, tAngle); in dumpAngles()
868 tAngle->dumpTo(this, fAngle); in dumpAngles()
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dquaternion.inl423 T fAngle = atan(fSin, fCos);
425 k0 = sin((T(1) - a) * fAngle) * fOneOverSin;
426 k1 = sin((T(0) + a) * fAngle) * fOneOverSin;