2D vector More...
Derived from: | None |
Derived by: | |
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 angle between this vector relative to another vector. | |
Calculate the distance between this vector and an other vector. | |
Rounds all components of this vector. | |
Rotate this vector around another point. | |
Rounds a value for the datatype. |
| |
+= operator. | |
-= operator. | |
*= operator. | |
/= operator. | |
/ operator. | |
== operator. | |
!= operator. |
Returns the anchor point for the origin within the dimensions of the size structure. | |
Dot products a vector with an other vector. | |
Normalizes a vector. | |
Rotate a vector around another point. | |
Rounds all components on a vector. |
Detailed description:
These vector templates are defined for:char (CL_Vec2c), unsigned char (CL_Vec2uc), short (CL_Vec2s),unsigned short (CL_Vec2us), int (CL_Vec2i), unsigned int (CL_Vec2ui), float (CL_Vec2f), double (CL_Vec2d)