Lines Matching refs:kBounds
21 static const SkRect kBounds = SkRect::MakeLTRB(0.1f, 0.1f, 0.9f, 0.9f); variable
84 const SkRect fieldBounds = kBounds.makeOutset(kBallSize / 2, kBallSize / 2); in onOnceBeforeDraw()
92 SkPoint::Make(kBounds.centerX(), kBounds.centerY()), in onOnceBeforeDraw()
108 bgPath.moveTo(kBounds.left() , fieldBounds.top()); in onOnceBeforeDraw()
109 bgPath.lineTo(kBounds.right(), fieldBounds.top()); in onOnceBeforeDraw()
110 bgPath.moveTo(kBounds.left() , fieldBounds.bottom()); in onOnceBeforeDraw()
111 bgPath.lineTo(kBounds.right(), fieldBounds.bottom()); in onOnceBeforeDraw()
114 bgPath.moveTo(kBounds.centerX(), in onOnceBeforeDraw()
115 kBounds.top() + (i + 0.25f) * kBounds.height() / kBackgroundDashCount); in onOnceBeforeDraw()
116 bgPath.lineTo(kBounds.centerX(), in onOnceBeforeDraw()
117 kBounds.top() + (i + 0.75f) * kBounds.height() / kBackgroundDashCount); in onOnceBeforeDraw()
223 SkPoint shadowOffset = pos - SkPoint::Make(kBounds.centerX(), kBounds.centerY()); in updateDom()
240 if (fBall.pos.fY < kBounds.fTop || fBall.pos.fY >= kBounds.fBottom) { 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()
249 fBall.pos.fX = box_reflect(fBall.pos.fX, kBounds.fLeft, kBounds.fRight); in enforceConstraints()
267 std::tie(t, yIntercept) = find_yintercept(fBall.pos, fBall.spd, kBounds); in updatePaddleStrategy()
270 pitcher->spd.fY = (kBounds.centerY() - pitcher->pos.fY) / t; in updatePaddleStrategy()