CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
bt::vector3i Class Reference

vector3i - three-dimensional integer vector. More...

Public Member Functions

_FORCEINLINE vector3i ()
 The constructor does not set the initial values to the fields.
 
_FORCEINLINE vector3i (_int32 a)
 Конструктор, задает все параметры равными одному значению.
 
_FORCEINLINE vector3i (_int32 _x, _int32 _y, _int32 _z)
 
_FORCEINLINE vector3i (vector3f *_a)
 Преобразование вектора в формате с плавающей точкой в целочисленный
 
_FORCEINLINE const vector3i operator+ (const vector3i &a) const
 Addition of vectors.
 
_FORCEINLINE const vector3ioperator+= (const vector3i &a)
 Addition of vectors.
 
_FORCEINLINE const vector3i operator- (const vector3i &a) const
 Subtraction of vectors.
 
_FORCEINLINE const vector3ioperator-= (const vector3i &a)
 Subtraction of vectors.
 
_FORCEINLINE _int32 & operator[] (unsigned int id) const
 Accessing parameters as array elements.
 
_FORCEINLINE void zero ()
 Sets the value of the fields to zero.
 

Friends

_FORCEINLINE friend vector3i operator* (vector3i &a, double &b)
 Scaling vector.
 
_FORCEINLINE friend vector3i operator* (double &b, vector3i &a)
 Scaling vector.
 
_FORCEINLINE friend vector3i operator* (vector3i &a, const double &b)
 Scaling vector.
 
_FORCEINLINE friend vector3i operator* (const double &b, vector3i &a)
 Scaling vector.
 
_FORCEINLINE friend vector3i operator* (vector3i &a, vector3i &b)
 Element-by-element multiplication of vectors.
 
_FORCEINLINE friend vector3i operator+ (vector3i &a, vector3i &b)
 Addition of vectors.
 
_FORCEINLINE friend vector3ioperator+= (vector3i &a, vector3i &b)
 Addition of vectors.
 
_FORCEINLINE friend vector3i operator- (vector3i &a, vector3i &b)
 Subtraction of vectors.
 
_FORCEINLINE friend vector3ioperator-= (vector3i &a, vector3i &b)
 Subtraction of vectors.
 

Detailed Description

vector3i - three-dimensional integer vector.

See Also
vector4i, vector2i bt: math

Constructor & Destructor Documentation

_FORCEINLINE bt::vector3i::vector3i ( _int32  _x,
_int32  _y,
_int32  _z 
)
inline

Конструктор.

Parameters
_x- vector x
_y- vector y
_z- vector z