OpenStructure
|
#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) |
Point & | operator= (const Point &p) |
Point & | operator+= (const Point &p) |
Point & | operator-= (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 |
Point & | operator+= (const Size &p) |
Point & | operator-= (const Size &p) |
Vec2 | ToVec2 () const |
Vec3 | ToVec3 () const |
Vec4 | ToVec4 () const |
Friends | |
Point | absolute (const Point &) |
Point | ( | ) |
|
explicit |
1D int constructor
Point | ( | int | a, |
int | b | ||
) |
2D int constructor
Point | ( | int | a, |
int | b, | ||
int | c | ||
) |
3D int constructor
|
explicit |
conversion from Vec2
|
explicit |
conversion from Vec3
|
explicit |
conversion from Vec4 (normalization)
Point Mirror | ( | int | planes | ) |
return mirror point according to planes
bool operator!= | ( | const Point & | p | ) | const |
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 |
int operator[] | ( | unsigned int | index | ) | const |
int& operator[] | ( | unsigned int | index | ) |
Vec2 ToVec2 | ( | ) | const |
Vec3 ToVec3 | ( | ) | const |
Vec4 ToVec4 | ( | ) | const |