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


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

Public Member Functions

 Vector2uint16 ()
 
 Vector2uint16 (G3D::uint16 _x, G3D::uint16 _y)
 
 Vector2uint16 (const class Vector2 &v)
 
 Vector2uint16 (class BinaryInput &bi)
 
 Vector2uint16 (const class Any &a)
 
 Vector2uint16 (const class Vector2int32 &v)
 
Vector2uint16 clamp (const Vector2uint16 &lo, const Vector2uint16 &hi)
 
void deserialize (class BinaryInput &bi)
 
bool isZero () const
 
Vector2uint16 max (const Vector2uint16 &v) const
 
Vector2uint16 min (const Vector2uint16 &v) const
 
bool operator!= (const Vector2uint16 &rkVector) const
 
Vector2uint16 operator* (const Vector2uint16 &other) const
 
Vector2uint16 operator* (const unsigned int s) const
 
Vector2uint16operator*= (const Vector2uint16 &other)
 
Vector2uint16 operator+ (const Vector2uint16 &other) const
 
Vector2uint16operator+= (const Vector2uint16 &other)
 
Vector2uint16 operator- (const Vector2uint16 &other) const
 
Vector2uint16operator-= (const Vector2uint16 &other)
 
Vector2uint16 operator<< (const int s) const
 Shifts both x and y. More...
 
Vector2uint16operator= (const Any &a)
 
bool operator== (const Vector2uint16 &rkVector) const
 
Vector2uint16 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::uint16 x
 
G3D::uint16 y
 

Detailed Description


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

Constructor & Destructor Documentation

◆ Vector2uint16() [1/6]

G3D::Vector2uint16::Vector2uint16 ( )
inline

◆ Vector2uint16() [2/6]

G3D::Vector2uint16::Vector2uint16 ( G3D::uint16  _x,
G3D::uint16  _y 
)
inline

◆ Vector2uint16() [3/6]

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

◆ Vector2uint16() [4/6]

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

◆ Vector2uint16() [5/6]

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

◆ Vector2uint16() [6/6]

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

Member Function Documentation

◆ clamp()

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

◆ deserialize()

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

◆ isZero()

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

◆ max()

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

◆ min()

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

◆ operator!=()

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

◆ operator*() [1/2]

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

◆ operator*() [2/2]

Vector2uint16 G3D::Vector2uint16::operator* ( const unsigned int  s) const
inline

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator<<()

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

Shifts both x and y.

◆ operator=()

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

◆ operator==()

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

◆ operator>>()

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

Shifts both x and y.

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ serialize()

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

◆ toAny()

Any G3D::Vector2uint16::toAny ( ) const

Member Data Documentation

◆ x

G3D::uint16 G3D::Vector2uint16::x

◆ y

G3D::uint16 G3D::Vector2uint16::y

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