3D vector More...
Derived from: | None |
Derived by: | None |
Group: | Math (Core) |
#include <ClanLib/core.h>
Class Members:
Attributes: | |
Returns the length (magnitude) of this vector. | |
Normalizes this vector. | |
Dot products this vector with an other vector. | |
Calculate the angle between this vector and an other vector. | |
Calculate the distance between this vector and an other vector. | |
Calculate the cross product between this vector and an other vector. | |
Rotate this vector around an axis. Same as glRotate[f|d](angle, a);. | |
Rounds all components on this vector. |
| |
+= operator. | |
-= operator. | |
*= operator. | |
/= operator. | |
/ operator. | |
== operator. | |
!= operator. |
Calculate the cross product between two vectors. | |
Dot products between two vectors. | |
Normalizes a vector. | |
Rotate a vector around an axis. Same as glRotate[f|d](angle, a);. | |
Rounds all components on a vector. |
Detailed description:
These vector templates are defined for:char (CL_Vec3c), unsigned char (CL_Vec3uc), short (CL_Vec3s),unsigned short (CL_Vec3us), int (CL_Vec3i), unsigned int (CL_Vec3ui), float (CL_Vecdf), double (CL_Vec3d)