Home
last modified time | relevance | path

Searched refs:fVelocity (Results 1 – 7 of 7) sorted by relevance

/external/skia/samplecode/
DSampleAtlas.cpp78 SkVector fVelocity; member
87 fCenter += fVelocity; in advance()
89 SkASSERT(fVelocity.fX > 0); in advance()
90 fVelocity.fX = -fVelocity.fX; in advance()
92 SkASSERT(fVelocity.fX < 0); in advance()
93 fVelocity.fX = -fVelocity.fX; in advance()
96 if (fVelocity.fY > 0) { in advance()
97 fVelocity.fY = -fVelocity.fY; in advance()
100 if (fVelocity.fY < 0) { in advance()
101 fVelocity.fY = -fVelocity.fY; in advance()
[all …]
DSampleLitAtlas.cpp338 fVelocity.fX = rand->nextSScalar1(); in initAsteroid()
339 fVelocity.fY = sqrt(1.0f - fVelocity.fX * fVelocity.fX); in initAsteroid()
340 SkASSERT(SkScalarNearlyEqual(fVelocity.length(), 1.0f)); in initAsteroid()
341 fVelocity *= gMaxSpeeds[fObjType]; in initAsteroid()
354 fVelocity = SkVector::Make(0.0f, 0.0f); in initShip()
365 fPosition += fVelocity; in advance()
367 SkASSERT(fVelocity.fX > 0); in advance()
368 fVelocity.fX = -fVelocity.fX; in advance()
370 SkASSERT(fVelocity.fX < 0); in advance()
371 fVelocity.fX = -fVelocity.fX; in advance()
[all …]
/external/skqp/samplecode/
DSampleAtlas.cpp78 SkVector fVelocity; member
87 fCenter += fVelocity; in advance()
89 SkASSERT(fVelocity.fX > 0); in advance()
90 fVelocity.fX = -fVelocity.fX; in advance()
92 SkASSERT(fVelocity.fX < 0); in advance()
93 fVelocity.fX = -fVelocity.fX; in advance()
96 if (fVelocity.fY > 0) { in advance()
97 fVelocity.fY = -fVelocity.fY; in advance()
100 if (fVelocity.fY < 0) { in advance()
101 fVelocity.fY = -fVelocity.fY; in advance()
[all …]
DSampleLitAtlas.cpp338 fVelocity.fX = rand->nextSScalar1(); in initAsteroid()
339 fVelocity.fY = sqrt(1.0f - fVelocity.fX * fVelocity.fX); in initAsteroid()
340 SkASSERT(SkScalarNearlyEqual(fVelocity.length(), 1.0f)); in initAsteroid()
341 fVelocity *= gMaxSpeeds[fObjType]; in initAsteroid()
354 fVelocity = SkVector::Make(0.0f, 0.0f); in initShip()
365 fPosition += fVelocity; in advance()
367 SkASSERT(fVelocity.fX > 0); in advance()
368 fVelocity.fX = -fVelocity.fX; in advance()
370 SkASSERT(fVelocity.fX < 0); in advance()
371 fVelocity.fX = -fVelocity.fX; in advance()
[all …]
/external/skia/modules/particles/src/
DSkParticleEffect.cpp101 fParticles[fCount].fVelocity.fLinear = { 0.0f, 0.0f }; in update()
102 fParticles[fCount].fVelocity.fAngular = 0.0f; in update()
142 fParticles[i].fPose.fPosition += fParticles[i].fVelocity.fLinear * deltaTime; in update()
144 SkScalar c, s = SkScalarSinCos(fParticles[i].fVelocity.fAngular * deltaTime, &c); in update()
235 case kRotation_Source: return ps.fVelocity.fAngular; in getSourceValue()
251 case kVelocityX_Source: return ps.fVelocity.fLinear.dot(frameRight); in getSourceValue()
252 case kVelocityY_Source: return ps.fVelocity.fLinear.dot(frameUp); in getSourceValue()
DSkParticleAffector.cpp53 ps[i].fVelocity.fLinear += force * params.fDeltaTime; in REFLECTED()
55 ps[i].fVelocity.fLinear = force; in REFLECTED()
87 ps[i].fVelocity.fAngular += strength * params.fDeltaTime; in REFLECTED()
89 ps[i].fVelocity.fAngular = strength; in REFLECTED()
118 ps[i].fVelocity.fLinear += in REFLECTED()
/external/skia/modules/particles/include/
DSkParticleData.h56 SkParticleVelocity fVelocity; member
66 SkVector heading = fVelocity.fLinear; in getFrameHeading()