Files Class List
IPoint4ui Class Reference

Detailed Description

4D integer point class with uint32_t type elements

+ Inheritance diagram for IPoint4ui:

Public Member Functions

Binary operators
IPoint4 operator+ (const IPoint4 &p) const
 
IPoint4 operator+ (const uint32_t &v) const
 
IPoint4 operator- (const IPoint4 &p) const
 
IPoint4 operator- (const uint32_t &v) const
 
IPoint4 operator* (const IPoint4 &p) const
 
IPoint4 operator* (const uint32_t &v) const
 
IPoint4 operator/ (const IPoint4 &p) const
 
IPoint4 operator/ (const uint32_t &v) const
 
Unary operators
IPoint4 operator- () const
 
Set & Get value methods
void Zero ()
 
void Get (uint32_t *p) const
 
void Set (const uint32_t *p)
 
void Set (const uint32_t &v)
 
void Set (const uint32_t &_x, const uint32_t &_y, const uint32_t &_z, const uint32_t &_w=0)
 
Length and Normalize methods
uint32_t Sum () const
 
bool IsZero () const
 
uint32_t Min () const
 
uint32_t Max () const
 
int MinID () const
 
int MaxID () const
 
Limit methods
void Clamp (const uint32_t &minValue, const uint32_t &maxValue)
 
void ClampMin (const uint32_t &v)
 
void ClampMax (const uint32_t &v)
 
void Abs ()
 
Assignment operators
const IPoint4operator+= (const IPoint4 &p)
 
const IPoint4operator+= (const uint32_t &v)
 
const IPoint4operator-= (const IPoint4 &p)
 
const IPoint4operator-= (const uint32_t &v)
 
const IPoint4operator*= (const IPoint4 &p)
 
const IPoint4operator*= (const uint32_t &v)
 
const IPoint4operator/= (const IPoint4 &p)
 
const IPoint4operator/= (const uint32_t &v)
 
Bitwise operators
IPoint4 operator<< (const IPoint4 &p) const
 
IPoint4 operator<< (const uint32_t &v) const
 
IPoint4 operator>> (const IPoint4 &p) const
 
IPoint4 operator>> (const uint32_t &v) const
 
IPoint4 operator & (const IPoint4 &p) const
 
IPoint4 operator & (const uint32_t &v) const
 
IPoint4 operator| (const IPoint4 &p) const
 
IPoint4 operator| (const uint32_t &v) const
 
IPoint4 operator^ (const IPoint4 &p) const
 
IPoint4 operator^ (const uint32_t &v) const
 
Bitwise Assignment operators
const IPoint4operator<<= (const IPoint4 &p)
 
const IPoint4operator<<= (const uint32_t &v)
 
const IPoint4operator>>= (const IPoint4 &p)
 
const IPoint4operator>>= (const uint32_t &v)
 
const IPoint4operator &= (const IPoint4 &p)
 
const IPoint4operator &= (const uint32_t &v)
 
const IPoint4operator|= (const IPoint4 &p)
 
const IPoint4operator|= (const uint32_t &v)
 
const IPoint4operator^= (const IPoint4 &p)
 
const IPoint4operator^= (const uint32_t &v)
 
Test operators
bool operator== (const IPoint4 &p) const
 
bool operator!= (const IPoint4 &p) const
 
Access operators
uint32_t & operator[] (int i)
 
const uint32_t & operator[] (int i) const
 
uint32_t & Element (int i)
 
const uint32_t & Element (int i) const
 
uint32_t * Data ()
 
const uint32_t * Data () const
 
Cross product and dot product
uint32_t Dot (const IPoint4 &p) const
 
uint32_t operator% (const IPoint4 &p) const
 
Conversion Methods
IPoint2< uint32_t > XY () const
 
IPoint3< uint32_t > XYZ () const
 

Public Attributes

Components of the point
uint32_t x
 
uint32_t y
 
uint32_t z
 
uint32_t w
 

Member Function Documentation

§ Zero()

void Zero ( )
inherited

Sets the coordinates as zero.

§ Get()

void Get ( uint32_t *  p) const
inherited

Puts the coordinate values into the array.

§ Set() [1/3]

void Set ( const uint32_t *  p)
inherited

Sets the coordinates using the values in the given array.

§ Set() [2/3]

void Set ( const uint32_t &  v)
inherited

Sets all coordinates using the given value.

§ Set() [3/3]

void Set ( const uint32_t &  _x,
const uint32_t &  _y,
const uint32_t &  _z,
const uint32_t &  _w = 0 
)
inherited

Sets the coordinates using the given values.

§ Sum()

uint32_t Sum ( ) const
inherited

Returns the sum of its components.

§ IsZero()

bool IsZero ( ) const
inherited

Returns true if all components are exactly zero.

§ Min()

uint32_t Min ( ) const
inherited

Returns the sum of its components.

§ Max()

uint32_t Max ( ) const
inherited

Returns the sum of its components.

§ MinID()

int MinID ( ) const
inherited

Returns the sum of its components.

§ MaxID()

int MaxID ( ) const
inherited

Returns the sum of its components.

§ Clamp()

void Clamp ( const uint32_t &  minValue,
const uint32_t &  maxValue 
)
inherited

Converts all negative components to positive values.

§ ClampMin()

void ClampMin ( const uint32_t &  v)
inherited

Converts all negative components to positive values.

§ ClampMax()

void ClampMax ( const uint32_t &  v)
inherited

Converts all negative components to positive values.

§ Abs()

void Abs ( )
inherited

Converts all negative components to positive values.

§ Dot()

uint32_t Dot ( const IPoint4< uint32_t > &  p) const
inherited

Dot product.

§ operator%()

uint32_t operator% ( const IPoint4< uint32_t > &  p) const
inherited

Dot product.