#include <vec3.hh>
Inherits equality_comparable< Vec3 >, additive< Vec3 >, additive< Vec3, Real >, and multiplicative< Vec3, Real >.
Three dimensional vector class, using Real precision.
Definition at line 43 of file vec3.hh.
◆ Vec3() [1/8]
Default initialization, all components are set to zero.
Definition at line 51 of file vec3.hh.
◆ Vec3() [2/8]
Initialization with x, y and z component.
Definition at line 54 of file vec3.hh.
◆ Vec3() [3/8]
copy ctor
Definition at line 57 of file vec3.hh.
◆ Vec3() [4/8]
(implicit) initialization with 2D vector
Definition at line 367 of file vec3.hh.
◆ Vec3() [5/8]
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 369 of file vec3.hh.
◆ Vec3() [6/8]
◆ Vec3() [7/8]
Vec3 |
( |
const double |
v[3] | ) |
|
|
inlineexplicit |
explicit initialization with an array of doubles
Definition at line 72 of file vec3.hh.
◆ Vec3() [8/8]
explicit initialization with an array of floats
Definition at line 75 of file vec3.hh.
◆ At() [1/2]
◆ At() [2/2]
const Real& At |
( |
size_t |
indx | ) |
const |
|
inline |
◆ Data() [1/2]
◆ Data() [2/2]
const Real* Data |
( |
| ) |
const |
|
inline |
◆ GetX()
element access
Definition at line 138 of file vec3.hh.
◆ GetY()
◆ GetZ()
◆ operator*=()
multipliable
Definition at line 185 of file vec3.hh.
◆ operator+=() [1/2]
addable op
Definition at line 146 of file vec3.hh.
◆ operator+=() [2/2]
◆ operator-()
negateable
Definition at line 179 of file vec3.hh.
◆ operator-=() [1/2]
subtractable op
Definition at line 163 of file vec3.hh.
◆ operator-=() [2/2]
◆ operator/=()
◆ operator=()
assignement op
Definition at line 95 of file vec3.hh.
◆ operator==()
bool operator== |
( |
const Vec3 & |
rhs | ) |
const |
|
inline |
comparable
Definition at line 105 of file vec3.hh.
◆ operator[]() [1/2]
Real& operator[] |
( |
std::size_t |
indx | ) |
|
|
inline |
element access
Definition at line 111 of file vec3.hh.
◆ operator[]() [2/2]
const Real& operator[] |
( |
std::size_t |
indx | ) |
const |
|
inline |
const element access
Definition at line 118 of file vec3.hh.
◆ SetX()
◆ SetY()
◆ SetZ()
The documentation for this class was generated from the following file:
- build-2.9.0-doc/stage/include/ost/geom/vec3.hh