Vec3 Class Reference
Three dimensional vector class, using Real precision.
More...
#include <vec3.hh>
Detailed Description
Three dimensional vector class, using Real precision.
Definition at line 42 of file vec3.hh.
Constructor & Destructor Documentation
Default initialization, all components are set to zero.
Definition at line 50 of file vec3.hh.
Initialization with x, y and z component.
Definition at line 53 of file vec3.hh.
copy ctor
Definition at line 56 of file vec3.hh.
(implicit) initialization with 2D vector
Definition at line 340 of file vec3.hh.
Vec3 |
( |
const Vec4 & |
v |
) |
[inline, explicit] |
explicit initialization with a 4D homogeneous vector
a 4D (homogeneous) vector can be explicitely converted to a 3D vector, resulting in (x/w,y/w,z/w)
Definition at line 342 of file vec3.hh.
Vec3 |
( |
const double |
v[3] |
) |
[inline, explicit] |
explicit initialization with an array of doubles
Definition at line 71 of file vec3.hh.
Vec3 |
( |
const float |
v[3] |
) |
[inline, explicit] |
explicit initialization with an array of floats
Definition at line 74 of file vec3.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] |
element access
Definition at line 119 of file vec3.hh.
Real GetY |
( |
|
) |
const [inline] |
Real GetZ |
( |
|
) |
const [inline] |
multipliable
Definition at line 166 of file vec3.hh.
Vec3& operator+= |
( |
const Vec3 & |
rhs |
) |
[inline] |
addable op
Definition at line 127 of file vec3.hh.
Vec3 operator- |
( |
|
) |
const [inline] |
negateable
Definition at line 160 of file vec3.hh.
Vec3& operator-= |
( |
const Vec3 & |
rhs |
) |
[inline] |
subtractable op
Definition at line 144 of file vec3.hh.
Vec3& operator= |
( |
const Vec3 & |
v |
) |
[inline] |
assignement op
Definition at line 77 of file vec3.hh.
bool operator== |
( |
const Vec3 & |
rhs |
) |
const [inline] |
comparable
Definition at line 86 of file vec3.hh.
const Real& operator[] |
( |
std::size_t |
indx |
) |
const [inline] |
const element access
Definition at line 99 of file vec3.hh.
Real& operator[] |
( |
std::size_t |
indx |
) |
[inline] |
element access
Definition at line 92 of file vec3.hh.
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: