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


A Vector2 that packs its fields into G3D::unorm16s. More...

Public Member Functions

 Vector2unorm16 ()
 
 Vector2unorm16 (G3D::unorm16 _x, G3D::unorm16 _y)
 
 Vector2unorm16 (float _x, float _y)
 
 Vector2unorm16 (const class Vector2 &v)
 
 Vector2unorm16 (class BinaryInput &bi)
 
 Vector2unorm16 (const class Any &a)
 
void deserialize (class BinaryInput &bi)
 
size_t hashCode () const
 
bool operator!= (const Vector2unorm16 &rkVector) const
 
Vector2unorm16operator= (const Any &a)
 
bool operator== (const Vector2unorm16 &rkVector) const
 
G3D::unorm16operator[] (int i)
 
const G3D::unorm16operator[] (int i) const
 
void serialize (class BinaryOutput &bo) const
 
Any toAny () const
 

Public Attributes

G3D::unorm16 x
 
G3D::unorm16 y
 

Detailed Description


A Vector2 that packs its fields into G3D::unorm16s.

This is mostly useful for texture coordinates that are on the range [0, 1].

See also
Vector2int16

Constructor & Destructor Documentation

◆ Vector2unorm16() [1/6]

G3D::Vector2unorm16::Vector2unorm16 ( )
inline

◆ Vector2unorm16() [2/6]

G3D::Vector2unorm16::Vector2unorm16 ( G3D::unorm16  _x,
G3D::unorm16  _y 
)
inline

◆ Vector2unorm16() [3/6]

G3D::Vector2unorm16::Vector2unorm16 ( float  _x,
float  _y 
)
inline

◆ Vector2unorm16() [4/6]

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

◆ Vector2unorm16() [5/6]

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

◆ Vector2unorm16() [6/6]

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

Member Function Documentation

◆ deserialize()

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

◆ hashCode()

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

◆ operator!=()

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

◆ operator=()

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

◆ operator==()

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

◆ operator[]() [1/2]

G3D::unorm16& G3D::Vector2unorm16::operator[] ( int  i)
inline

◆ operator[]() [2/2]

const G3D::unorm16& G3D::Vector2unorm16::operator[] ( int  i) const
inline

◆ serialize()

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

◆ toAny()

Any G3D::Vector2unorm16::toAny ( ) const

Member Data Documentation

◆ x

G3D::unorm16 G3D::Vector2unorm16::x

◆ y

G3D::unorm16 G3D::Vector2unorm16::y

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