vector2i - two-dimensional integer vector. More...
Public Member Functions | |
_FORCEINLINE | vector2i () |
The constructor does not set the initial values to the fields. | |
_FORCEINLINE | vector2i (_int32 _a) |
Конструктор, задает все параметры равными одному значению. | |
_FORCEINLINE | vector2i (_int32 _x, _int32 _y) |
_FORCEINLINE | vector2i (vector2f *_a) |
Преобразование вектора в формате с плавающей точкой в целочисленный | |
_FORCEINLINE bool | leftOfLine (const vector2i &a, const vector2i &b) |
The position of a point on a straight line passing through a b. | |
_FORCEINLINE const vector2i | operator* (const float &b) |
Scaling vector. | |
_FORCEINLINE const vector2i | operator* (const _int32 &b) |
Scaling vector. | |
_FORCEINLINE const vector2i | operator+ (const vector2i &a) const |
Addition of vectors. | |
_FORCEINLINE const vector2i & | operator+= (const vector2i &a) |
Addition of vectors. | |
_FORCEINLINE const vector2i | operator- (const vector2i &a) const |
Subtraction of vectors. | |
_FORCEINLINE const vector2i & | operator-= (const vector2i &a) |
Subtraction of vectors. | |
_FORCEINLINE _int32 & | operator[] (unsigned int id) const |
Accessing parameters as array elements. | |
_FORCEINLINE _int32 | quadDistanceFromLine (const vector2i &a, const vector2i &b) |
The square of the distance from a point to a straight line passing through a b. | |
_FORCEINLINE _int32 | sqrLen () |
Vector length squared. | |
_FORCEINLINE void | zero () |
Sets the value of the fields to zero. | |
Public Attributes | |
_int32 | x |
Параметр оси X. | |
_int32 | y |
Параметр оси Y. | |
Friends | |
_FORCEINLINE friend vector2i | operator* (vector2i &a, _int32 &b) |
Scaling vector. | |
_FORCEINLINE friend vector2i | operator* (_int32 &b, vector2i &a) |
Scaling vector. | |
_FORCEINLINE friend vector2i | operator+ (const vector2i &a, const vector2i &b) |
Addition of vectors. | |
_FORCEINLINE friend vector2i | operator+ (vector2i &a, vector2i &b) |
Addition of vectors. | |
_FORCEINLINE friend vector2i & | operator+= (vector2i &a, vector2i &b) |
Addition of vectors. | |
_FORCEINLINE friend vector2i | operator- (vector2i &a, vector2i &b) |
Subtraction of vectors. | |
_FORCEINLINE friend vector2i & | operator-= (vector2i &a, vector2i &b) |
Subtraction of vectors. | |
|
inline |
Конструктор.
_x | - vector x |
_y | - vector y |