Lines Matching refs:fBall
90 fBall.initialize(ball, in onOnceBeforeDraw()
131 root->appendChild(fBall.shadowNode); in onOnceBeforeDraw()
134 root->appendChild(fBall.objectNode); in onOnceBeforeDraw()
187 fBall.posTick(dt); in onAnimate()
193 fBall.updateDom(); in onAnimate()
240 if (fBall.pos.fY < kBounds.fTop || fBall.pos.fY >= kBounds.fBottom) { in enforceConstraints()
241 fBall.spd.fY = -fBall.spd.fY; in enforceConstraints()
242 fBall.pos.fY = box_reflect(fBall.pos.fY, kBounds.fTop, kBounds.fBottom); in enforceConstraints()
246 if (fBall.pos.fX < kBounds.fLeft || fBall.pos.fX >= kBounds.fRight) { in enforceConstraints()
247 fBall.spd.fX = this->fuzzBallSpeed(-fBall.spd.fX); in enforceConstraints()
248 fBall.spd.fY = this->fuzzBallSpeed(fBall.spd.fY); in enforceConstraints()
249 fBall.pos.fX = box_reflect(fBall.pos.fX, kBounds.fLeft, kBounds.fRight); in enforceConstraints()
263 Object* pitcher = fBall.spd.fX > 0 ? &fPaddle0 : &fPaddle1; in updatePaddleStrategy()
264 Object* catcher = fBall.spd.fX > 0 ? &fPaddle1 : &fPaddle0; in updatePaddleStrategy()
267 std::tie(t, yIntercept) = find_yintercept(fBall.pos, fBall.spd, kBounds); in updatePaddleStrategy()
277 Object fPaddle0, fPaddle1, fBall; member in SVGPongView