#include <vec2.hh>
Public Member Functions | |
| Vec2 () | |
| Vec2 (Real x, Real y) | |
| Vec2 (const Vec2 &v) | |
| Vec2 (const Vec3 &v) | |
| Vec2 (const Vec4 &v) | |
| Vec2 (const Real[2]) | |
| Vec2 & | operator= (const Vec2 &v) |
| Real & | operator[] (std::size_t indx) |
| const Real & | operator[] (std::size_t indx) const |
| Real | GetX () const |
| Real | GetY () const |
| void | SetX (Real v) |
| void | SetY (Real v) |
| bool | operator== (const Vec2 &rhs) const |
| Vec2 & | operator+= (const Vec2 &rhs) |
| Vec2 & | operator+= (Real d) |
| Vec2 & | operator-= (const Vec2 &rhs) |
| Vec2 & | operator-= (Real d) |
| Vec2 | operator- () const |
| Vec2 & | operator*= (Real d) |
| Vec2 & | operator/= (Real d) |
| Real * | Data () |
| const Real * | Data () const |
Definition at line 39 of file vec2.hh.
| Vec2 | ( | ) |
Default initialization, all components are set to zero.
| Vec2 | ( | const | Real[2] | ) | [explicit] |
explicit initialization with an array of doubles
| Real GetX | ( | ) | const |
element access
| Real GetY | ( | ) | const |
| Vec2 operator- | ( | ) | const |
negateable
| bool operator== | ( | const Vec2 & | rhs | ) | const |
comparable
| const Real& operator[] | ( | std::size_t | indx | ) | const |
const element access
| Real& operator[] | ( | std::size_t | indx | ) |
element access
| void SetX | ( | Real | v | ) |
| void SetY | ( | Real | v | ) |
1.5.8