Classes | |
| struct | Enki::Vector |
| A vector in a 2D space. More... | |
| struct | Enki::Matrix22 |
| A 2x2 matrix. More... | |
| struct | Enki::Segment |
| A segment in a 2D space, basically two points. More... | |
| struct | Enki::Polygone |
| Polygone, which is a vector of points. Anti-clockwise, standard trigonometric orientation. More... | |
| class | Enki::FastRandom |
| A fast random generator. More... | |
Typedefs | |
| typedef Vector | Enki::Point |
| A point in a 2D space, another name for a vector. | |
Functions | |
| double | Enki::normalizeAngle (double angle) |
| Normlize an angle to be between -PI and +PI. | |
| Point | Enki::getIntersection (const Segment &s1, const Segment &s2) |
| get the intersection point between two line segments returns Point(HUGE_VAL, HUGE_VAL) if there's no intersection added by yvan.bourquin@epfl.ch | |
| double | Enki::uniformRand (void) |
| Return a number in [0;1[ in a uniform distribution. | |
| unsigned | Enki::intRand (unsigned max) |
| Return a number between [0;max[ in integer in a uniform distribution. | |
| bool | Enki::boolRand (double prob=0.5) |
| Return true with a probability prob. If no argument is given, prob = 0.5. | |
| double | Enki::gaussianRand (double mean, double sigm) |
| Return a random number with a gaussian distribution of a certain mean and standard deviation. | |
1.5.1