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


Homogeneous vector stored efficiently in four signed int8s. More...

Public Member Functions

 Vector4int8 ()
 
 Vector4int8 (const Vector4 &source)
 Multiplies the source by 127 and clamps to (-128, 127) when converting. More...
 
 Vector4int8 (const Vector3 &source, int8 w)
 Multiplies the source by 127 and clamps to (-128, 127) when converting. More...
 
 Vector4int8 (int8 x, int8 y, int8 z, int8 w)
 
 Vector4int8 (class BinaryInput &b)
 
void deserialize (class BinaryInput &b)
 
unsigned int hashCode () const
 
 operator const int8 * () const
 
 operator int8 * ()
 
bool operator!= (const Vector4int8 &other) const
 
Vector4int8operator= (const Vector4int8 &other)
 
bool operator== (const Vector4int8 &other) const
 
int8operator[] (int i)
 
const int8operator[] (int i) const
 
void serialize (class BinaryOutput &b) const
 

Public Attributes

int8 w
 
int8 x
 
int8 y
 
int8 z
 

Detailed Description


Homogeneous vector stored efficiently in four signed int8s.

Constructor & Destructor Documentation

◆ Vector4int8() [1/5]

G3D::Vector4int8::Vector4int8 ( )
inline

◆ Vector4int8() [2/5]

G3D::Vector4int8::Vector4int8 ( const Vector4 source)
explicit

Multiplies the source by 127 and clamps to (-128, 127) when converting.

◆ Vector4int8() [3/5]

G3D::Vector4int8::Vector4int8 ( const Vector3 source,
int8  w 
)
explicit

Multiplies the source by 127 and clamps to (-128, 127) when converting.

◆ Vector4int8() [4/5]

G3D::Vector4int8::Vector4int8 ( int8  x,
int8  y,
int8  z,
int8  w 
)
inline

◆ Vector4int8() [5/5]

G3D::Vector4int8::Vector4int8 ( class BinaryInput b)
explicit

Member Function Documentation

◆ deserialize()

void G3D::Vector4int8::deserialize ( class BinaryInput b)

◆ hashCode()

unsigned int G3D::Vector4int8::hashCode ( ) const
inline

◆ operator const int8 *()

G3D::Vector4int8::operator const int8 * ( ) const
inline

◆ operator int8 *()

G3D::Vector4int8::operator int8 * ( )
inline

◆ operator!=()

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

◆ operator=()

Vector4int8& G3D::Vector4int8::operator= ( const Vector4int8 other)
inline

◆ operator==()

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

◆ operator[]() [1/2]

int8& G3D::Vector4int8::operator[] ( int  i)
inline

◆ operator[]() [2/2]

const int8& G3D::Vector4int8::operator[] ( int  i) const
inline

◆ serialize()

void G3D::Vector4int8::serialize ( class BinaryOutput b) const

Member Data Documentation

◆ w

int8 G3D::Vector4int8::w

◆ x

int8 G3D::Vector4int8::x

◆ y

int8 G3D::Vector4int8::y

◆ z

int8 G3D::Vector4int8::z

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