Vec4 Class Reference
#include <vec4.hh>
Detailed Description
Definition at line 41 of file vec4.hh.
Constructor & Destructor Documentation
Default initialization, all components are set to zero.
Definition at line 49 of file vec4.hh.
Initialization with x, y and z component.
Definition at line 52 of file vec4.hh.
copy ctor
Definition at line 55 of file vec4.hh.
(implicit) initialization with 2D vector
Definition at line 215 of file vec4.hh.
(implicit) initialization with 3D vector
Definition at line 218 of file vec4.hh.
Vec4 |
( |
const float |
v[4] |
) |
[inline, explicit] |
explicit initialization with an array of floats
Definition at line 64 of file vec4.hh.
Vec4 |
( |
const double |
v[4] |
) |
[inline, explicit] |
explicit initialization with an array of doubles
Definition at line 67 of file vec4.hh.
Member Function Documentation
const Real& At |
( |
size_t |
indx |
) |
const [inline] |
Real& At |
( |
size_t |
indx |
) |
[inline] |
const Real* Data |
( |
|
) |
const [inline] |
Real GetW |
( |
|
) |
const [inline] |
Real GetX |
( |
|
) |
const [inline] |
element access
Definition at line 113 of file vec4.hh.
Real GetY |
( |
|
) |
const [inline] |
Real GetZ |
( |
|
) |
const [inline] |
multipliable
Definition at line 167 of file vec4.hh.
Vec4& operator+= |
( |
const Vec4 & |
rhs |
) |
[inline] |
addable op
Definition at line 124 of file vec4.hh.
Vec4 operator- |
( |
|
) |
const [inline] |
negateable
Definition at line 161 of file vec4.hh.
Vec4& operator-= |
( |
const Vec4 & |
rhs |
) |
[inline] |
subtractable op
Definition at line 143 of file vec4.hh.
Vec4& operator= |
( |
const Vec4 & |
v |
) |
[inline] |
assignement op
Definition at line 69 of file vec4.hh.
bool operator== |
( |
const Vec4 & |
rhs |
) |
const [inline] |
comparable
Definition at line 79 of file vec4.hh.
const Real& operator[] |
( |
std::size_t |
indx |
) |
const [inline] |
const element access
Definition at line 92 of file vec4.hh.
Real& operator[] |
( |
std::size_t |
indx |
) |
[inline] |
element access
Definition at line 85 of file vec4.hh.
void SetW |
( |
Real |
v |
) |
[inline] |
void SetX |
( |
Real |
v |
) |
[inline] |
void SetY |
( |
Real |
v |
) |
[inline] |
void SetZ |
( |
Real |
v |
) |
[inline] |
Field Documentation
The documentation for this class was generated from the following file: