Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
G3D::Vector4int32 Class Reference


\ Vector4int32 A Vector4 that packs its fields into int32s. More...

Public Member Functions

 Vector4int32 ()
 
 Vector4int32 (int _x, int _y, int _z, int _w)
 
 Vector4int32 (const Any &any)
 
 Vector4int32 (const class Vector4 &v)
 Rounds to the nearest int. More...
 
size_t hashCode () const
 
Vector4int32 max (const Vector4int32 &v) const
 
Vector4int32 min (const Vector4int32 &v) const
 
bool nonZero () const
 
Vector4int32 operator & (int32 i) const
 
bool operator!= (const Vector4int32 &rkVector) const
 
Vector4int32 operator* (const Vector4int32 &other) const
 
Vector4int32 operator* (const int s) const
 
Vector4int32operator*= (const Vector4int32 &other)
 
Vector4int32 operator+ (const Vector4int32 &other) const
 
Vector4int32operator+= (const Vector4int32 &other)
 
Vector4int32 operator- (const Vector4int32 &other) const
 
Vector4int32 operator- () const
 
Vector4int32operator-= (const Vector4int32 &other)
 
Vector4int32 operator/ (const Vector4int32 &other) const
 Integer division. More...
 
Vector4int32 operator/ (const int s) const
 Integer division. More...
 
Vector4int32 operator<< (int i) const
 
Vector4int32 operator<< (const Vector4int32 &v) const
 
bool operator== (const Vector4int32 &rkVector) const
 
Vector4int32 operator>> (int i) const
 
Vector4int32 operator>> (const Vector4int32 &v) const
 
G3D::int32operator[] (int i)
 
const G3D::int32operator[] (int i) const
 
Any toAny () const
 
String toString () const
 
Vector2int32 xx () const
 
Vector2int32 xy () const
 
Vector2int32 xz () const
 
Vector2int32 yx () const
 
Vector2int32 yy () const
 
Vector2int32 yz () const
 
Vector2int32 zx () const
 
Vector2int32 zy () const
 
Vector2int32 zz () const
 

Static Public Member Functions

static Vector4int32 truncate (const class Vector4 &v)
 

Public Attributes

G3D::int32 w
 
G3D::int32 x
 
G3D::int32 y
 
G3D::int32 z
 

Detailed Description


\ Vector4int32 A Vector4 that packs its fields into int32s.

Corresponds to OpenGL's ivec4

Constructor & Destructor Documentation

◆ Vector4int32() [1/4]

G3D::Vector4int32::Vector4int32 ( )
inline

◆ Vector4int32() [2/4]

G3D::Vector4int32::Vector4int32 ( int  _x,
int  _y,
int  _z,
int  _w 
)
inline

◆ Vector4int32() [3/4]

G3D::Vector4int32::Vector4int32 ( const Any any)

◆ Vector4int32() [4/4]

G3D::Vector4int32::Vector4int32 ( const class Vector4 v)
explicit

Rounds to the nearest int.

Member Function Documentation

◆ hashCode()

size_t G3D::Vector4int32::hashCode ( ) const
inline

◆ max()

Vector4int32 G3D::Vector4int32::max ( const Vector4int32 v) const
inline

◆ min()

Vector4int32 G3D::Vector4int32::min ( const Vector4int32 v) const
inline

◆ nonZero()

bool G3D::Vector4int32::nonZero ( ) const
inline

◆ operator &()

Vector4int32 G3D::Vector4int32::operator& ( int32  i) const
inline

◆ operator!=()

bool G3D::Vector4int32::operator!= ( const Vector4int32 rkVector) const
inline

◆ operator*() [1/2]

Vector4int32 G3D::Vector4int32::operator* ( const Vector4int32 other) const
inline

◆ operator*() [2/2]

Vector4int32 G3D::Vector4int32::operator* ( const int  s) const
inline

◆ operator*=()

Vector4int32& G3D::Vector4int32::operator*= ( const Vector4int32 other)
inline

◆ operator+()

Vector4int32 G3D::Vector4int32::operator+ ( const Vector4int32 other) const
inline

◆ operator+=()

Vector4int32& G3D::Vector4int32::operator+= ( const Vector4int32 other)
inline

◆ operator-() [1/2]

Vector4int32 G3D::Vector4int32::operator- ( const Vector4int32 other) const
inline

◆ operator-() [2/2]

Vector4int32 G3D::Vector4int32::operator- ( ) const
inline

◆ operator-=()

Vector4int32& G3D::Vector4int32::operator-= ( const Vector4int32 other)
inline

◆ operator/() [1/2]

Vector4int32 G3D::Vector4int32::operator/ ( const Vector4int32 other) const
inline

Integer division.

◆ operator/() [2/2]

Vector4int32 G3D::Vector4int32::operator/ ( const int  s) const
inline

Integer division.

◆ operator<<() [1/2]

Vector4int32 G3D::Vector4int32::operator<< ( int  i) const
inline

◆ operator<<() [2/2]

Vector4int32 G3D::Vector4int32::operator<< ( const Vector4int32 v) const
inline

◆ operator==()

bool G3D::Vector4int32::operator== ( const Vector4int32 rkVector) const
inline

◆ operator>>() [1/2]

Vector4int32 G3D::Vector4int32::operator>> ( int  i) const
inline

◆ operator>>() [2/2]

Vector4int32 G3D::Vector4int32::operator>> ( const Vector4int32 v) const
inline

◆ operator[]() [1/2]

G3D::int32& G3D::Vector4int32::operator[] ( int  i)
inline

◆ operator[]() [2/2]

const G3D::int32& G3D::Vector4int32::operator[] ( int  i) const
inline

◆ toAny()

Any G3D::Vector4int32::toAny ( ) const

◆ toString()

String G3D::Vector4int32::toString ( ) const

◆ truncate()

static Vector4int32 G3D::Vector4int32::truncate ( const class Vector4 v)
static

◆ xx()

Vector2int32 G3D::Vector4int32::xx ( ) const

◆ xy()

Vector2int32 G3D::Vector4int32::xy ( ) const

◆ xz()

Vector2int32 G3D::Vector4int32::xz ( ) const

◆ yx()

Vector2int32 G3D::Vector4int32::yx ( ) const

◆ yy()

Vector2int32 G3D::Vector4int32::yy ( ) const

◆ yz()

Vector2int32 G3D::Vector4int32::yz ( ) const

◆ zx()

Vector2int32 G3D::Vector4int32::zx ( ) const

◆ zy()

Vector2int32 G3D::Vector4int32::zy ( ) const

◆ zz()

Vector2int32 G3D::Vector4int32::zz ( ) const

Member Data Documentation

◆ w

G3D::int32 G3D::Vector4int32::w

◆ x

G3D::int32 G3D::Vector4int32::x

◆ y

G3D::int32 G3D::Vector4int32::y

◆ z

G3D::int32 G3D::Vector4int32::z

documentation generated on Wed Nov 24 2021 08:02:02 using doxygen 1.8.15