Home | All Classes | Grouped Classes | Index | Search
Vector class. More...
Derived from:
none
Derived by:
none
Group: Core (Math)
#include <ClanLib/core.h>
Variables:
x coordinate | |
y coordinate | |
z coordinate | |
w coordinate |
Construction:
Constructor that initializes a vector |
Attributes:
Returns the (euclid) norm 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. |
Operators:
Scalar product (vector * scalar) | |
Scalar product (scalar * vector) | |
+= operator. | |
-= operator. | |
*= operator (scalar multiplication). | |
+ operator. | |
- operator. | |
assignment 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, ...). |
Detailed description:
!group=Core/Math! !header=core.h!This class provides basic functions and operators for working with vectors.