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


A Vector2 that packs its fields into G3D::int16 s. More...

Public Member Functions

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

Public Attributes

G3D::int16 x
 
G3D::int16 y
 

Detailed Description


A Vector2 that packs its fields into G3D::int16 s.

Constructor & Destructor Documentation

◆ Vector2int16() [1/6]

G3D::Vector2int16::Vector2int16 ( )
inline

◆ Vector2int16() [2/6]

G3D::Vector2int16::Vector2int16 ( G3D::int16  _x,
G3D::int16  _y 
)
inline

◆ Vector2int16() [3/6]

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

◆ Vector2int16() [4/6]

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

◆ Vector2int16() [5/6]

G3D::Vector2int16::Vector2int16 ( const class Any a)
explicit

◆ Vector2int16() [6/6]

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

Member Function Documentation

◆ clamp()

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

◆ deserialize()

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

◆ isZero()

bool G3D::Vector2int16::isZero ( ) const
inline

◆ max()

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

◆ min()

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

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

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

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

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

◆ operator-=()

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

◆ operator<<()

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

Shifts both x and y.

◆ operator=()

Vector2int16& G3D::Vector2int16::operator= ( const Any a)

◆ operator==()

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

◆ operator>>()

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

Shifts both x and y.

◆ operator[]() [1/2]

G3D::int16& G3D::Vector2int16::operator[] ( int  i)
inline

◆ operator[]() [2/2]

const G3D::int16& G3D::Vector2int16::operator[] ( int  i) const
inline

◆ serialize()

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

◆ toAny()

Any G3D::Vector2int16::toAny ( ) const

Member Data Documentation

◆ x

G3D::int16 G3D::Vector2int16::x

◆ y

G3D::int16 G3D::Vector2int16::y

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