Point Class Reference

class encapsulating 1D to 3D point More...

#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 &size)
Point Mirror (int planes)
int & operator[] (unsigned int index)
int operator[] (unsigned int index) const
int & At (unsigned int index)
int At (unsigned int index) const
Pointoperator= (const Point &p)
Pointoperator+= (const Point &p)
Pointoperator-= (const Point &p)
Point operator- () const
Pointoperator+= (const Size &p)
Pointoperator-= (const Size &p)
bool operator== (const Point &p) const
bool operator< (const Point &p) const
Pointoperator*= (int s)
Vec2 ToVec2 () const
Vec3 ToVec3 () const
Vec4 ToVec4 () const

Data Fields

int x
int y
int z

Detailed Description

class encapsulating 1D to 3D point

Definition at line 43 of file point.hh.


Constructor & Destructor Documentation

Point (  )  [inline]

Definition at line 49 of file point.hh.

Point ( const Point p  )  [inline]

Definition at line 56 of file point.hh.

Point ( int  a  )  [inline]

1D int constructor

Definition at line 65 of file point.hh.

Point ( int  a,
int  b 
) [inline]

2D int constructor

Definition at line 73 of file point.hh.

Point ( int  a,
int  b,
int  c 
) [inline]

3D int constructor

Definition at line 81 of file point.hh.

Point ( const Vec2 &  v  )  [inline, explicit]

conversion from Vec2

Definition at line 89 of file point.hh.

Point ( const Vec3 &  v  )  [inline, explicit]

conversion from Vec3

Definition at line 98 of file point.hh.

Point ( const Vec4 &  v  )  [inline, explicit]

conversion from Vec4 (normalization)

Definition at line 107 of file point.hh.

Point ( const Size size  ) 

(implicit) conversion of size to point


Member Function Documentation

int At ( unsigned int  index  )  const [inline]

Definition at line 148 of file point.hh.

int& At ( unsigned int  index  )  [inline]

Definition at line 142 of file point.hh.

Point Mirror ( int  planes  ) 

return mirror point according to planes

Point& operator*= ( int  s  )  [inline]

Definition at line 171 of file point.hh.

Point& operator+= ( const Size p  ) 
Point& operator+= ( const Point p  ) 
Point operator- (  )  const
Point& operator-= ( const Size p  ) 
Point& operator-= ( const Point p  ) 
bool operator< ( const Point p  )  const
Point& operator= ( const Point p  ) 
bool operator== ( const Point p  )  const
int operator[] ( unsigned int  index  )  const [inline]

Definition at line 135 of file point.hh.

int& operator[] ( unsigned int  index  )  [inline]

Definition at line 129 of file point.hh.

Vec2 ToVec2 (  )  const
Vec3 ToVec3 (  )  const
Vec4 ToVec4 (  )  const

Field Documentation

int x

Definition at line 178 of file point.hh.

int y

Definition at line 179 of file point.hh.

int z

Definition at line 180 of file point.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1