OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:cohesion
(Results
1 - 2
of
2
) sorted by null
/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();
/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
...]
Completed in 1083 milliseconds