Searched defs:flock_box (Results 1 - 1 of 1) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dgoose.cc50 const pp::Rect& flock_box) {
61 if (!flock_box.IsEmpty()) {
62 while (location_.x() < flock_box.x())
63 location_.set_x(location_.x() + flock_box.width());
65 while (location_.x() >= flock_box.right())
66 location_.set_x(location_.x() - flock_box.width());
68 while (location_.y() < flock_box.y())
69 location_.set_y(location_.y() + flock_box.height());
71 while (location_.y() >= flock_box.bottom())
72 location_.set_y(location_.y() - flock_box
48 SimulationTick(const std::vector<Goose>& geese, const std::vector<Vector2>& attractors, const pp::Rect& flock_box) argument
[all...]

Completed in 69 milliseconds