The namespace of the library. To make sure that all functions in the library are not conflicting with any other function the library uses it's own namespace. One always needs to use this namespace to access the functions inside this library. More...
Classes | |
class | Agent |
Simulates the anticipatory behavior of an agent. More... | |
struct | AgentInitialParameters |
The initial parameters for a single agent. More... | |
class | LineObstacle |
A line segment obstacle class. More... | |
class | ProximityDatabaseItem |
The virtual interface used by objects in the spatial database. More... | |
class | SimulationEngine |
The main class of the library. More... | |
class | Vector2D |
A two-dimensional vector class. More... | |
Typedefs | |
typedef LQProximityDatabase2D | SpatialProximityDatabase |
The spatial proximity database. | |
typedef SpatialProximityDatabase::tokenType | ProximityToken |
An object in the proximity database. | |
typedef ProximityDatabaseItem * | ProximityDatabaseItemPtr |
Pointer to a ProximityDatabaseItem. | |
Functions | |
float | Sqr (float a) |
The square of a value. More... | |
Vector2D | closestPointLineSegment (const Vector2D &line_start, const Vector2D &line_end, const Vector2D &p) |
Determine the closest point on a line segment given a test point. More... | |
std::ostream & | operator<< (std::ostream &os, const Vector2D &v) |
Writes a vector to an output stream. More... | |
Vector2D | normalize (const Vector2D &v) |
Normalization of a vector. More... | |
float | dot (const Vector2D &v1, const Vector2D &v2) |
The dot product between two vectors. More... | |
float | det (const Vector2D &v1, const Vector2D &v2) |
The cross product between two vectors. More... | |
Vector2D | operator* (const float a, const Vector2D &v) |
Scalar multiplication (left operator) More... | |
void | clamp (Vector2D &v, float maxValue) |
Caps the magnitude of a vector to a maximum value. More... | |
The namespace of the library. To make sure that all functions in the library are not conflicting with any other function the library uses it's own namespace. One always needs to use this namespace to access the functions inside this library.
|
inline |
Caps the magnitude of a vector to a maximum value.
force | A force vector |
maxValue | The maximum magnitude of the force. |
|
inline |
Determine the closest point on a line segment given a test point.
line_start | The start point of the line segment. |
line_end | The end point of the line segment. |
p | The test point. |
|
inline |
The cross product between two vectors.
v1 | A vector |
v2 | A vector |
|
inline |
The dot product between two vectors.
v1 | A vector |
v2 | A vector |
|
inline |
Normalization of a vector.
v | A vector |
|
inline |
Scalar multiplication (left operator)
v | A vector. |
a | The scalar. |
|
inline |
Writes a vector to an output stream.
os | The output stream |
v | The vector |
|
inline |
The square of a value.
a | A scalar value |