OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Friends
Point Class Reference

#include <point.hh>

Inherited by Peak.

Public Member Functions

 Point ()
 Point (const Point &p)
 Point (int a)
 Point (int a, int b)
 Point (int a, int b, int c)
 Point (const Vec2 &v)
 Point (const Vec3 &v)
 Point (const Vec4 &v)
 Point (const Size &s)
Point Mirror (int planes)
int operator[] (unsigned int index) const
int & operator[] (unsigned int index)
Pointoperator= (const Point &p)
Pointoperator+= (const Point &p)
Pointoperator-= (const Point &p)
Point operator- () const
bool operator== (const Point &p) const
bool operator!= (const Point &p) const
bool operator< (const Point &p) const
bool operator<= (const Point &p) const
bool operator> (const Point &p) const
bool operator>= (const Point &p) const
Pointoperator+= (const Size &p)
Pointoperator-= (const Size &p)
Vec2 ToVec2 () const
Vec3 ToVec3 () const
Vec4 ToVec4 () const

Friends

Point absolute (const Point &)

Detailed Description

class encapsulating 1D to 3D point

Definition at line 46 of file point.hh.


Constructor & Destructor Documentation

Point ( )
Point ( const Point p)
Point ( int  a)
explicit

1D int constructor

Point ( int  a,
int  b 
)

2D int constructor

Point ( int  a,
int  b,
int  c 
)

3D int constructor

Point ( const Vec2 &  v)
explicit

conversion from Vec2

Point ( const Vec3 &  v)
explicit

conversion from Vec3

Point ( const Vec4 &  v)
explicit

conversion from Vec4 (normalization)

Point ( const Size s)

(implicit) conversion of size to point


Member Function Documentation

Point Mirror ( int  planes)

return mirror point according to planes

bool operator!= ( const Point p) const
Point& operator+= ( const Point p)
Point& operator+= ( const Size p)
Point operator- ( ) const
Point& operator-= ( const Point p)
Point& operator-= ( const Size p)
bool operator< ( const Point p) const
bool operator<= ( const Point p) const
Point& operator= ( const Point p)
bool operator== ( const Point p) const
bool operator> ( const Point p) const
bool operator>= ( const Point p) const
int operator[] ( unsigned int  index) const
int& operator[] ( unsigned int  index)
Vec2 ToVec2 ( ) const
Vec3 ToVec3 ( ) const
Vec4 ToVec4 ( ) const

Friends And Related Function Documentation

Point absolute ( const Point )
friend

The documentation for this class was generated from the following file: