Openholo
v5.0
Open Source Digital Holographic Library
|
structure for 3-dimensional Real type vector and its arithmetic. More...
#include <vec.h>
Public Member Functions | |
vec3 () | |
vec3 (Real a) | |
vec3 (Real v_1, Real v_2, Real v_3) | |
vec3 (const ivec3 &a) | |
vec3 (const vec3 &a) | |
vec3 & | operator= (const vec3 &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 |
int | is_parallel (const vec3 &, Real=angle_tolerance) const |
bool | is_perpendicular (const vec3 &, Real=angle_tolerance) const |
bool | perpendicular (const vec3 &) |
bool | perpendicular (const vec3 &, const vec3 &, const vec3 &) |
Public Attributes | |
Real | v [3] |
Static Public Attributes | |
static const int | n = 3 |
structure for 3-dimensional Real type vector and its arithmetic.
int oph::vec3::is_parallel | ( | const vec3 & | vv, |
Real | angle_tolerance = angle_tolerance |
||
) | const |
bool oph::vec3::is_perpendicular | ( | const vec3 & | vv, |
Real | angle_tolerance = angle_tolerance |
||
) | const |