Vec2 Class Reference
#include <vec2.hh>
Detailed Description
Definition at line 42 of file vec2.hh.
Constructor & Destructor Documentation
Default initialization, all components are set to zero.
Definition at line 50 of file vec2.hh.
Initialization with x, y and z component.
Definition at line 53 of file vec2.hh.
copy ctor
Definition at line 56 of file vec2.hh.
Vec2 |
( |
const Vec3 & |
v |
) |
[inline, explicit] |
explicit initialization with 3D vector
Definition at line 189 of file vec2.hh.
Vec2 |
( |
const Vec4 & |
v |
) |
[inline, explicit] |
explicit initialization with a 4D homogeneous vector
Definition at line 192 of file vec2.hh.
Vec2 |
( |
const float |
v[2] |
) |
[inline, explicit] |
explicit initialization with an array of doubles
Definition at line 65 of file vec2.hh.
Vec2 |
( |
const double |
v[2] |
) |
[inline, explicit] |
explicit initialization with an array of floats
Definition at line 69 of file vec2.hh.
Member Function Documentation
const Real& At |
( |
size_t |
indx |
) |
const [inline] |
Real& At |
( |
size_t |
indx |
) |
[inline] |
const Real* Data |
( |
|
) |
const [inline] |
Real GetX |
( |
|
) |
const [inline] |
Real GetY |
( |
|
) |
const [inline] |
multipliable
Definition at line 148 of file vec2.hh.
Vec2& operator+= |
( |
const Vec2 & |
rhs |
) |
[inline] |
addable op
Definition at line 113 of file vec2.hh.
Vec2 operator- |
( |
|
) |
const [inline] |
negateable
Definition at line 142 of file vec2.hh.
Vec2& operator-= |
( |
const Vec2 & |
rhs |
) |
[inline] |
subtractable op
Definition at line 128 of file vec2.hh.
bool operator== |
( |
const Vec2 & |
rhs |
) |
const [inline] |
comparable
Definition at line 79 of file vec2.hh.
const Real& operator[] |
( |
std::size_t |
indx |
) |
const [inline] |
const element access
Definition at line 92 of file vec2.hh.
Real& operator[] |
( |
std::size_t |
indx |
) |
[inline] |
element access
Definition at line 85 of file vec2.hh.
void SetX |
( |
Real |
d |
) |
[inline] |
void SetY |
( |
Real |
d |
) |
[inline] |
Field Documentation
The documentation for this class was generated from the following file: