distance.h 296 Bytes
Newer Older
Cassio Kirch's avatar
Cassio Kirch committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#ifndef DISTANCE_STRUCT
struct Distance
{
  double module;
  double sine;
  double cosine;
};
#define DISTANCE_STRUCT
#endif

double getForce (const double distance);

struct Distance getDistance (const struct Boid* const boid2,    \
                             const struct Boid* const boid1);