
Vector class. More...
Derived from: | None |
Derived by: | None |
Group: | Math (Core) |
#include <ClanLib/core.h>
Class Members:
Construction: | |
Constructor that initializes a vector. |
| |
Returns the length (magnitude) of the vector. | |
Normalizes the vector (not taking into account the w ordinate!). | |
Dot products this vector with an other vector. | |
Calculate the angle between this vector and an other vector. | |
Calculate the cross product between this vector and an other vector. | |
Rotate vector around an axis. | |
Rounds all components. |
| |
Scalar product (vector * scalar). | |
+= operator. | |
-= operator. | |
*= operator (scalar multiplication). | |
+ operator. | |
Returns true if current vector equals v. | |
Returns false if current vector equals v. | |
Returns reference to n-th ordinate (0. == x, 1. == y, ...). | |
cout's the x,y,z ordinates (meant for debugging). |
| |
x coordinate | |
y coordinate | |
z coordinate | |
w coordinate |
Detailed description:
This class provides basic functions and operators for working with vectors.