#include <V3D.h>
Public Member Functions | |
V3D () | |
V3D (const Real *v) | |
V3D (const Real &x0, const Real &y0, const Real &z0) | |
void | Init (const Real *v) |
const Real * | Vec () const |
void | SetPrecission (Real prec) |
bool | IsZero () const |
bool | IsAproxZero () const |
bool | IsAproxEq (const V3D &v) const |
void | ToArray (Real *v) const |
void | ToOpenGLMatrix (double *m) const |
void | ToOpenGLMatrix (float *m) const |
void | Zero () |
void | Normalize () |
Real | ModulAndNormalize () |
V3D | Unitary () const |
Real | Modul () const |
Real | Modul_2 () const |
Real | Dist (const V3D &p) const |
Real | PEsc (const V3D &v) const |
Real | operator * (const V3D &v) const |
V3D | PVec (const V3D &v) const |
V3D | operator% (const V3D &v) const |
V3D | operator/ (const Real &s) const |
V3D | operator * (const Real &s) const |
V3D | operator- (const V3D &v) const |
V3D | operator+ (const V3D &v) const |
void | operator/= (const Real &s) |
void | operator *= (const Real &s) |
void | operator-= (const V3D &v) |
void | operator+= (const V3D &v) |
void | operator= (const V3D &v) |
V3D | operator- () const |
bool | operator== (const V3D &v) const |
bool | operator!= (const V3D &v) const |
Real | operator[] (int i) const |
Real & | operator() (int i) |
operator const float * () const | |
operator const double * () const | |
Public Attributes | |
Real | x |
Real | y |
Real | z |
Static Public Attributes | |
Real | epsilon = 0.0 |
Precissió. | |
double | static_double_V3D [3] |
Friends | |
V3D | operator * (const Real &s, const V3D &v) |
Vector 3D de Reals amb operacions sobrecarregades i inline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Precissió.
|
|
|
|
|
|
|
|
|