Lines Matching refs:fVelocity
338 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()
374 if (fVelocity.fY > 0) { in advance()
375 fVelocity.fY = -fVelocity.fY; in advance()
378 if (fVelocity.fY < 0) { in advance()
379 fVelocity.fY = -fVelocity.fY; in advance()
392 const SkPoint& velocity() const { return fVelocity; } in velocity()
393 void setVelocity(const SkPoint& velocity) { fVelocity = velocity; } in setVelocity()
411 SkVector fVelocity; member in DrawLitAtlasDrawable::ObjectRecord