point2 Class Template Reference | |||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| point2 (T newX, T newY) | |
| point2 (const point2 &p) | |
| point2 & | operator= (const point2 &p) |
| point2 | operator<< (int shift) const |
| point2 | operator>> (int shift) const |
| point2 & | operator+= (const point2 &p) |
| point2 & | operator-= (const point2 &p) |
| point2 & | operator/= (double t) |
| 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 |
1.4.4