4D 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 (not taking into account the w ordinate). | |
Returns the length (magnitude) of this vector (taking into account the w ordinate). | |
Normalizes this vector (not taking into account the w ordinate) | |
Normalizes this vector (taking into account the w ordinate) | |
Dot products this vector with an other vector (not taking into account the w ordinate). | |
Dot products this vector with an other vector (taking into account the w ordinate). | |
Calculate the angle between this vector and an other vector (not taking into account the w ordinate). | |
Calculate the distance between this vector and an other vector (not taking into account the w ordinate). | |
Calculate the distance between this vector and an other vector (taking into account the w ordinate). | |
Calculate the cross product between this vector and an other vector (not taking into account the w ordinate). | |
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 (not taking into account the w ordinate). | |
Dot products between two vectors (not taking into account the w ordinate). | |
Dot products between two vectors (taking into account the w ordinate). | |
Normalizes a vector (not taking into account the w ordinate) | |
Normalizes a vector (taking into account the w ordinate) | |
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_Vec4c), unsigned char (CL_Vec4uc), short (CL_Vec4s),unsigned short (CL_Vec4us), int (CL_Vec4i), unsigned int (CL_Vec4ui), float (CL_Vec4f), double (CL_Vec4d)