Compounds | |
| class | Matrix |
| class | Point |
| class | Vector |
Functions | |
| const Vector | O (0, 0, 0) |
| const Vector | I (1, 1, 1) |
| const Vector | i (1, 0, 0) |
| const Vector | j (0, 1, 0) |
| const Vector | k (0, 0, 1) |
| Vector | operator+ (const Vector &a, const Vector &b) |
| Vector | operator+= (Vector &a, const Vector &b) |
| Vector | operator- (const Vector &a, const Vector &b) |
| Vector | operator * (const double c, const Vector &a) |
| Vector | operator * (const Vector &a, const double c) |
| double | operator * (const Vector &a, const Vector &b) |
| Vector | operator% (const Vector &a, const Vector &b) |
| ostream & | operator<< (ostream &s, const Vector &a) |
| Vector | operator * (const double *d, const Vector &a) |
| Vector | operator * (const Vector &a, const double *d) |
|
||||||||||||||||
|
||||||||||||||||
|
the unit-vecotr Referenced by anoid::plugin::Color::Color(), and anoid::plugin::Scale::Scale(). |
|
||||||||||||||||
|
||||||||||||||||
|
Referenced by anoid::main::Anoid::handleKeyDown(), anoid::main::Anoid::handleKeyUp(), and anoid::plugin::anoid::Pad::receive(). |
|
||||||||||||||||
|
||||||||||||
|
Multiply vector with a matrix from the right. The matrix is assumed to be a 4x4 matrix as a double[16] in column-major order (like for OpenGL). Only the upper left 3x3 part of the matrix is used.
Definition at line 96 of file vector.cc. References Vector(), anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
Multiply vector with a matrix from the left. The matrix is assumed to be a 4x4 matrix as a double[16] in column-major order (like for OpenGL). Only the upper left 3x3 part of the matrix is used.
Definition at line 90 of file vector.cc. References Vector(), anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator * calculates the dot-product between two vectors
Definition at line 77 of file vector.cc. References anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator * calculates the vector where all coordinates have been multiplied by c from right
|
|
||||||||||||
|
operator * calculates the vector where all coordinates have been multiplied by c from left
Definition at line 69 of file vector.cc. References Vector(), anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator% calculates the cross product of two vectors
Definition at line 81 of file vector.cc. References Vector(), anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator+ adds two vectors
Definition at line 47 of file vector.cc. References Vector(), anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator+= adds two vectors, save value in first
Definition at line 51 of file vector.cc. References anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |
|
||||||||||||
|
operator- substract two vectors
|
|
||||||||||||
|
operator<< prints the vector
Definition at line 85 of file vector.cc. References anoid::simple::Point::x, anoid::simple::Point::y, and anoid::simple::Point::z. |