15 vector3d(
double X,
double Y,
double Z);
21 void set(
double X,
double Y,
double Z);
22 void set(
const double location[3]);
40 double normalize(
double tolerance = 1e-06);
48 return {
y * from.
z -
z * from.
y,
z * from.
x -
x * from.
z,
x * from.
y -
y * from.
x};
void set(double X, double Y, double Z)
Definition vector3d.C:15
vector3d & operator+=(const vector3d &from)
Definition vector3d.h:51
double normalize(double tolerance=1e-06)
Definition vector3d.C:104
double y
Definition vector3d.h:17
bool operator!=(const vector3d &from) const
Definition vector3d.C:42
friend vector3d operator/(const vector3d &lhs, double scalar)
Definition vector3d.C:77
double length() const
Definition vector3d.C:102
vector3d operator-() const
Definition vector3d.C:65
friend vector3d operator*(double scalar, const vector3d &from)
Definition vector3d.C:71
vector3d & operator-=(const vector3d &from)
Definition vector3d.h:59
vector3d & operator/=(double scalar)
Definition vector3d.C:86
double z
Definition vector3d.h:17
vector3d & reverse()
Definition vector3d.C:29
static vector3d plane_normal(const vector3d &v1, const vector3d &v2, const vector3d &v3)
Definition vector3d.C:120
friend vector3d operator+(const vector3d &lhs, const vector3d &rhs)
Definition vector3d.C:47
bool operator==(const vector3d &from) const
Definition vector3d.C:37
vector3d cross(const vector3d &from) const
Definition vector3d.h:46
vector3d & operator*=(double scalar)
Definition vector3d.h:67
double x
Definition vector3d.h:17