|
V3FIT
|
9 #include "vector3d.hpp"
44 return *
this/this->
length();
58 v1.
z*v2.
x - v1.
x*v2.
z,
59 v1.
x*v2.
y - v1.
y*v2.
x);
72 return v1.
x*v2.
x + v1.
y*v2.
y + v1.
z*v2.
z;
static const vector3d cross_product(const vector3d &v1, const vector3d &v2)
Takes the cross product of two vectors.
vector3d(const double x_, const double y_, const double z_)
vector3d constructor.
const double x
x component.
static const double dot_product(const vector3d &v1, const vector3d &v2)
Takes the doc product of two vectors.
const vector3d normalize() const
Normalize vector3d instance.
const double length() const
Length of a vector3d instance.
const double y
y component.
const double z
z component.