Home | History | Annotate | Download | only in flock

Lines Matching refs:location_

40 Goose::Goose() : location_(0, 0), velocity_(0, 0) {
44 : location_(location),
58 location_.Add(velocity_);
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.height());
94 location_, goose.location());
124 attractors[i], location_);
150 Vector2 desired_direction = Vector2::Difference(target, location_);