![]() |
MAK Legion API Documentation
|
Collaboration diagram for Legion::Vector2d:Public Member Functions | |
| Vector2d () | |
| Vector2d (double x, double y) | |
| Vector2d (const double *tuple) | |
| Vector2d (const Vector2d &other) | |
| Vector2d (const Vector2f &other) | |
| Vector2d & | operator= (const Vector2d &vec) |
| bool | operator== (const Vector2d &vec) const |
| bool | operator!= (const Vector2d &vec) const |
| bool | operator< (const Vector2d &vec) const |
| bool | operator<= (const Vector2d &vec) const |
| bool | operator> (const Vector2d &vec) const |
| bool | operator>= (const Vector2d &vec) const |
| Vector2d | operator+ (const Vector2d &vec) const |
| Vector2d | operator- (const Vector2d &vec) const |
| Vector2d | operator* (double scalar) const |
| Vector2d | operator/ (double scalar) const |
| Vector2d | operator- () const |
| Vector2d & | operator+= (const Vector2d &vec) |
| Vector2d & | operator-= (const Vector2d &vec) |
| Vector2d & | operator*= (double scalar) |
| Vector2d & | operator/= (double scalar) |
| double | length () const |
| double | lengthSquared () const |
| double | dot (const Vector2d &vec) const |
| double | normalize () |
| double | distanceFrom (const Vector2d &other) const |
| double | distanceFromSquared (const Vector2d &other) const |
| void | setLength (double newLength) |
| void | invert () |
| bool | isZero () |
| Vector2d | perpendicular () const |
| Vector2d | unitPerp () const |
| double | dotPerp (const Vector2d &vec) const |
| void | rotateBy (double degrees, const Vector2d ¢er) |
| rotates the point around a center by an amount of degrees. More... | |
| double | angleTrig () const |
| Calculates the angle of this vector in grad in the trigonometric sense. More... | |
| double | angle () const |
| Calculates the angle of this vector in grad in the counter trigonometric sense. More... | |
| double | angleBetween (const Vector2d &b) const |
| Calculates the angle between this vector and another one in grad. More... | |
| bool | isBetweenPoints (const Vector2d &begin, const Vector2d &end) const |
| Returns if this vector interpreted as a point is on a line between two other points. More... | |
Static Public Member Functions | |
| static Vector2d | interpolate (const Vector2d &v0, const Vector2d &v1, double t) |
| returns interpolated vector More... | |
Public Attributes | |
| union { | |
| struct { | |
| double x | |
| double y | |
| } | |
| double data [2] | |
| }; | |
| Legion::Vector2d::Vector2d | ( | ) |
| Legion::Vector2d::Vector2d | ( | double | x, |
| double | y | ||
| ) |
| Legion::Vector2d::Vector2d | ( | const double * | tuple | ) |
| Legion::Vector2d::Vector2d | ( | const Vector2d & | other | ) |
| Legion::Vector2d::Vector2d | ( | const Vector2f & | other | ) |
|
inline |
Calculates the angle of this vector in grad in the counter trigonometric sense.
|
inline |
Calculates the angle between this vector and another one in grad.
|
inline |
Calculates the angle of this vector in grad in the trigonometric sense.
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
returns interpolated vector
| other,: | other vector to interpolate between |
| d,: | value between 0.0f and 1.0f. |
|
inline |
|
inline |
Returns if this vector interpreted as a point is on a line between two other points.
It is assumed that the point is on the line.
| begin,: | Beginning vector to compare between. |
| end,: | Ending vector to compare between. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
rotates the point around a center by an amount of degrees.
|
inline |
|
inline |
| union { ... } |
| double Legion::Vector2d::data[2] |
Referenced by Clutter::SimEngine::init(), and Clutter::SimEngine::selectNewDestination().
| double Legion::Vector2d::x |
Referenced by Clutter::SimEngine::init(), and Clutter::SimEngine::selectNewDestination().
| double Legion::Vector2d::y |
Referenced by Clutter::SimEngine::init(), and Clutter::SimEngine::selectNewDestination().