Openholo
v5.0
Open Source Digital Holographic Library
|
structure for 4-dimensional Real type vector and its arithmetic. More...
#include <vec.h>
Public Member Functions | |
vec4 () | |
vec4 (Real a) | |
vec4 (Real v_1, Real v_2, Real v_3, Real v_4) | |
vec4 (const ivec4 &a) | |
vec4 (const vec4 &a) | |
vec4 & | operator= (const vec4 &a) |
Real & | operator[] (int i) |
const Real & | operator[] (int i) const |
Real & | operator() (int i) |
const Real & | operator() (int i) const |
bool | is_zero () const |
bool | is_tiny (Real tiny_tol=epsilon) const |
bool | unit () |
Real | length () const |
Public Attributes | |
Real | v [4] |
Static Public Attributes | |
static const int | n = 4 |
structure for 4-dimensional Real type vector and its arithmetic.