OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:Boid
(Results
1 - 2
of
2
) sorted by null
/cts/tests/openglperf2/jni/reference/scene/flocking/
Boid.cpp
14
#include "
Boid
.h"
16
Boid
::
Boid
(float x, float y) :
20
void
Boid
::flock(const
Boid
* boids[], int numBoids, int index, float limitX, float limitY) {
32
const
Boid
* b = boids[i];
Boid.h
14
// An implementation of Craig Reynold's
Boid
Simulation.
20
class
Boid
{
22
Boid
(float x, float y);
24
void flock(const
Boid
* boids[], int numBoids, int index, float limitX, float limitY);
26
// modifies the
boid
's behaviour.
27
static const constexpr float MAX_SPEED = 2.0f;// Upper limit of
boid
velocity.
28
static const constexpr float MAX_FORCE = 0.05f;// Upper limit of the force used to push a
boid
.
Completed in 204 milliseconds