HomeSort by relevance Sort by last modified time
    Searched refs:cohesion (Results 1 - 3 of 3) sorted by null

  /external/chromium_org/native_client_sdk/src/examples/demo/flock/
goose.cc 28 // during the cohesion phase). Measured in pixels.
79 // the separation mean, the alignment mean and the cohesion mean.
85 Vector2 cohesion; local
103 distance, goose, &cohesion, cohesion_count);
120 // cohesion component. An attractor has to be within kAttractorRadius to
128 cohesion.Add(attractor_direction);
133 // If there is a non-0 cohesion component, steer the goose so that it tries
136 cohesion.Scale(1.0 / static_cast<double>(cohesion_count));
137 cohesion = TurnTowardsTarget(cohesion);
    [all...]
goose.h 40 // 3. Compute the cohesion component.
42 // cohesion component.
106 // Add a neighbouring goose's contribution to the cohesion mean. Cohesion is
109 // |kNeighbourRadius|. Modifies the cohesion accumulator |cohesion| in-place.
113 // @param {!goog.math.Vec2} cohesion The accumulated cohesion from all the
116 // contributed to the cohesion component so far.
117 // @return {!number} The new count of geese that contribute to the cohesion
    [all...]
  /cts/suite/cts/deviceTests/opengl/jni/reference/scene/flocking/
Boid.cpp 28 Vector2D cohesion; local
48 // Cohesion.
49 cohesion.add(b->mPosition);
68 cohesion.scale(1.0f / cohesionCount);
69 cohesion.scale(COHESION_WEIGHT);
70 Vector2D desired = cohesion.copy();

Completed in 1047 milliseconds