28 vector3d(
const double x_,
const double y_,
const double z_);
30 const double length()
const;
A vector.
Definition: vector3d.hpp:19
const double length() const
Length of a vector3d instance.
Definition: vector3d.cpp:32
static const double dot_product(const vector3d &v1, const vector3d &v2)
Takes the doc product of two vectors.
Definition: vector3d.cpp:71
static const vector3d cross_product(const vector3d &v1, const vector3d &v2)
Takes the cross product of two vectors.
Definition: vector3d.cpp:56
const vector3d normalize() const
Normalize vector3d instance.
Definition: vector3d.cpp:43
const double x
x component.
Definition: vector3d.hpp:22
const double y
y component.
Definition: vector3d.hpp:24
vector3d(const double x_, const double y_, const double z_)
vector3d constructor.
Definition: vector3d.cpp:21
const double z
z component.
Definition: vector3d.hpp:26