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


A Vector2 that packs its fields into int32s. More...

Public Member Functions

 Vector2int32 ()
 
 Vector2int32 (G3D::int32 _x, G3D::int32 _y)
 
 Vector2int32 (const class Vector2 &v)
 
 Vector2int32 (class BinaryInput &bi)
 
 Vector2int32 (const class Vector2int16 &v)
 
 Vector2int32 (const class Vector2uint16 &v)
 
 Vector2int32 (const class Any &a)
 
Vector2int32 clamp (const Vector2int32 &lo, const Vector2int32 &hi)
 
void deserialize (class BinaryInput &bi)
 
Vector2int32 max (const Vector2int32 &v) const
 
Vector2int32 min (const Vector2int32 &v) const
 
bool operator!= (const Vector2int32 &other) const
 
Vector2int32 operator* (const Vector2int32 &other) const
 
Vector2int32 operator* (const int s) const
 
Vector2int32operator*= (const Vector2int32 &other)
 
Vector2int32 operator+ (const Vector2int32 &other) const
 
Vector2int32operator+= (const Vector2int32 &other)
 
Vector2int32 operator- (const Vector2int32 &other) const
 
Vector2int32 operator- () const
 
Vector2int32operator-= (const Vector2int32 &other)
 
Vector2int32 operator<< (const int s) const
 Shifts both x and y. More...
 
bool operator== (const Vector2int32 &other) const
 
Vector2int32 operator>> (const int s) const
 Shifts both x and y. More...
 
G3D::int32operator[] (int i)
 
const G3D::int32operator[] (int i) const
 
void serialize (class BinaryOutput &bo) const
 
String toString () const
 

Static Public Member Functions

static Vector2int32 parseResolution (const String &s)
 Parses a string of the form "number x number". More...
 

Public Attributes

G3D::int32 x
 
G3D::int32 y
 

Detailed Description


A Vector2 that packs its fields into int32s.

Constructor & Destructor Documentation

◆ Vector2int32() [1/7]

G3D::Vector2int32::Vector2int32 ( )
inline

◆ Vector2int32() [2/7]

G3D::Vector2int32::Vector2int32 ( G3D::int32  _x,
G3D::int32  _y 
)
inline

◆ Vector2int32() [3/7]

G3D::Vector2int32::Vector2int32 ( const class Vector2 v)
explicit

◆ Vector2int32() [4/7]

G3D::Vector2int32::Vector2int32 ( class BinaryInput bi)
explicit

◆ Vector2int32() [5/7]

G3D::Vector2int32::Vector2int32 ( const class Vector2int16 v)

◆ Vector2int32() [6/7]

G3D::Vector2int32::Vector2int32 ( const class Vector2uint16 v)

◆ Vector2int32() [7/7]

G3D::Vector2int32::Vector2int32 ( const class Any a)

Member Function Documentation

◆ clamp()

Vector2int32 G3D::Vector2int32::clamp ( const Vector2int32 lo,
const Vector2int32 hi 
)

◆ deserialize()

void G3D::Vector2int32::deserialize ( class BinaryInput bi)

◆ max()

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

◆ min()

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

◆ operator!=()

bool G3D::Vector2int32::operator!= ( const Vector2int32 other) const
inline

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator<<()

Vector2int32 G3D::Vector2int32::operator<< ( const int  s) const
inline

Shifts both x and y.

◆ operator==()

bool G3D::Vector2int32::operator== ( const Vector2int32 other) const
inline

◆ operator>>()

Vector2int32 G3D::Vector2int32::operator>> ( const int  s) const
inline

Shifts both x and y.

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ parseResolution()

static Vector2int32 G3D::Vector2int32::parseResolution ( const String s)
static

Parses a string of the form "number x number".

◆ serialize()

void G3D::Vector2int32::serialize ( class BinaryOutput bo) const

◆ toString()

String G3D::Vector2int32::toString ( ) const

Member Data Documentation

◆ x

G3D::int32 G3D::Vector2int32::x

◆ y

G3D::int32 G3D::Vector2int32::y

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