Commit 0547ec33 authored by Cassio Kirch's avatar Cassio Kirch
Browse files

double * int instead of int * double

parent 2359b00a
......@@ -30,7 +30,7 @@ initializeCircleCorrectly(struct Boid* const boid)
double angle, radius;
angle = RANDOM_0(PI*2.0);
radius = sqrt(RANDOM_0(1.0)) * \
sqrt(N * 0.137832224) * ELASTIC_DISTANCE;
sqrt(0.137832224 * N) * ELASTIC_DISTANCE;
/* R^2 = re^2 * N * sqrt(3) / (4 pi) */
boid -> position[X] = radius * cos(angle);
boid -> position[Y] = radius * sin(angle);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment