Files Class List
IPoint3i Class Reference

Detailed Description

3D integer point class with int32_t type elements

+ Inheritance diagram for IPoint3i:

Public Member Functions

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

Public Attributes

Components of the point
int32_t x
 
int32_t y
 
int32_t z
 

Member Function Documentation

§ Zero()

void Zero ( )
inherited

Sets the coordinates as zero.

§ Get()

void Get ( int32_t *  p) const
inherited

Puts the coordinate values into the array.

§ Set() [1/3]

void Set ( const int32_t *  p)
inherited

Sets the coordinates using the values in the given array.

§ Set() [2/3]

void Set ( const int32_t &  v)
inherited

Sets all coordinates using the given value.

§ Set() [3/3]

void Set ( const int32_t &  _x,
const int32_t &  _y,
const int32_t &  _z 
)
inherited

Sets the coordinates using the given values.

§ Sum()

int32_t Sum ( ) const
inherited

Returns the sum of its components.

§ IsZero()

bool IsZero ( ) const
inherited

Returns true if all components are exactly zero.

§ Min()

int32_t Min ( ) const
inherited

Returns the sum of its components.

§ Max()

int32_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 int32_t &  minValue,
const int32_t &  maxValue 
)
inherited

Converts all negative components to positive values.

§ ClampMin()

void ClampMin ( const int32_t &  v)
inherited

Converts all negative components to positive values.

§ ClampMax()

void ClampMax ( const int32_t &  v)
inherited

Converts all negative components to positive values.

§ Abs()

void Abs ( )
inherited

Converts all negative components to positive values.

§ Dot()

int32_t Dot ( const IPoint3< int32_t > &  p) const
inherited

Dot product.

§ operator%()

int32_t operator% ( const IPoint3< int32_t > &  p) const
inherited

Dot product.