Files Class List
IPoint2ul Class Reference

Detailed Description

2D integer point class with uint64_t type elements

+ Inheritance diagram for IPoint2ul:

Public Member Functions

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

Public Attributes

Components of the point
uint64_t x
 
uint64_t y
 

Member Function Documentation

§ Zero()

void Zero ( )
inherited

Sets the coordinates as zero.

§ Get()

void Get ( uint64_t *  p) const
inherited

Puts the coordinate values into the array.

§ Set() [1/3]

void Set ( const uint64_t *  p)
inherited

Sets the coordinates using the values in the given array.

§ Set() [2/3]

void Set ( const uint64_t &  v)
inherited

Sets all coordinates using the given value.

§ Set() [3/3]

void Set ( const uint64_t &  _x,
const uint64_t &  _y 
)
inherited

Sets the coordinates using the given values.

§ Sum()

uint64_t Sum ( ) const
inherited

Returns the sum of its components.

§ IsZero()

bool IsZero ( ) const
inherited

Returns true if all components are exactly zero.

§ Min()

uint64_t Min ( ) const
inherited

Returns the sum of its components.

§ Max()

uint64_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 uint64_t &  minValue,
const uint64_t &  maxValue 
)
inherited

Converts all negative components to positive values.

§ ClampMin()

void ClampMin ( const uint64_t &  v)
inherited

Converts all negative components to positive values.

§ ClampMax()

void ClampMax ( const uint64_t &  v)
inherited

Converts all negative components to positive values.

§ Abs()

void Abs ( )
inherited

Converts all negative components to positive values.

§ Dot()

uint64_t Dot ( const IPoint2< uint64_t > &  p) const
inherited

Dot product.

§ operator%()

uint64_t operator% ( const IPoint2< uint64_t > &  p) const
inherited

Dot product operator.