|
Public Types |
|
typedef T | value_type |
Public Member Functions |
|
| point2 (T newX, T newY) |
|
template<typename T1> |
| | point2 (const point2< T1 > &p) |
|
const point2 & | operator= (const point2 &p) |
|
point2 | operator<< (int shift) const |
|
point2 | operator>> (int shift) const |
|
const point2 & | operator+= (const point2 &p) |
|
const point2 & | operator-= (const point2 &p) |
|
const point2 & | operator/= (double t) |
|
point2 | operator- () const |
|
const T & | operator[] (std::size_t i) const |
|
T & | operator[] (std::size_t i) |
Public Attributes |
|
T | x |
|
T | y |
Static Public Attributes |
|
static const std::size_t | num_dimensions = 2 |