Searched refs:Goose (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dgoose.h13 // A Goose. Each goose has a location and a velocity. Implements the
17 class Goose { class
19 // Initialize a Goose at location (0, 0) no velocity.
20 Goose();
22 // Initialize a Goose at the given location with the specified velocity.
23 Goose(const Vector2& location, const Vector2& velocity);
26 // flocking algorithm (see Goose.flock()) and update the goose's location
33 void SimulationTick(const std::vector<Goose>& geese,
53 Vector2 DesiredVector(const std::vector<Goose>& geese,
102 const Goose
[all...]
H A Dgoose.cc40 Goose::Goose() : location_(0, 0), velocity_(0, 0) { function in class:Goose
43 Goose::Goose(const Vector2& location, const Vector2& velocity) function in class:Goose
48 void Goose::SimulationTick(const std::vector<Goose>& geese,
76 Vector2 Goose::DesiredVector(const std::vector<Goose>& geese,
87 for (std::vector<Goose>::const_iterator goose_it = geese.begin();
90 const Goose
[all...]
H A Dflock.cc38 std::vector<Goose> g_geese;
49 g_geese[i] = Goose(center, Vector2(dx, dy));
70 Goose& goose = g_geese[i];

Completed in 165 milliseconds