 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
23 Vec3(
double _x,
double _y,
double _z) :
x(_x),
y(_y),
z(_z) {}
29 inline double length()
const {
return sqrt(
x *
x +
y *
y +
z *
z); }
33 return Vec3(
x / l,
y / l,
z / l);
65 return x * v.
x +
y * v.
y +
z * v.
z;
double length() const
Definition: Vec3.h:29
double x
Definition: Vec3.h:18
Vec3()
Definition: Vec3.h:25
Vec3 operator*(const double &a) const
Definition: Vec3.h:54
Vec3 cross(const Vec3 &v) const
Definition: Vec3.h:60
Vec3(double _x, double _y, double _z)
Definition: Vec3.h:23
void operator+=(const Vec3 &v)
Definition: Vec3.h:36
double y
Definition: Vec3.h:18
Vec3 operator/(const double &a) const
Definition: Vec3.h:42
a[190]
Definition: essential_matrix_poly.h:19
Vec3 operator-() const
Definition: Vec3.h:58
double dot(const Vec3 &v) const
Definition: Vec3.h:64
double z
Definition: Vec3.h:18
Vec3 operator-(const Vec3 &v) const
Definition: Vec3.h:46
Vec3(const Vec3 &v)
Definition: Vec3.h:27
Vec3 operator+(const Vec3 &v) const
Definition: Vec3.h:50
Vec3 normalized() const
Definition: Vec3.h:31
double f[3]
Definition: Vec3.h:20