![]() |
Stellarator-Tools
|
A vector. More...
#include <vector3d.hpp>
Public Member Functions | |
| vector3d (const double x_, const double y_, const double z_) | |
| vector3d constructor. | |
| const double | length () const |
| Length of a vector3d instance. | |
| const vector3d | normalize () const |
| Normalize vector3d instance. | |
Static Public Member Functions | |
| static const vector3d | cross_product (const vector3d &v1, const vector3d &v2) |
| Takes the cross product of two vectors. | |
| static const double | dot_product (const vector3d &v1, const vector3d &v2) |
| Takes the doc product of two vectors. | |
Public Attributes | |
| const double | x |
| x component. | |
| const double | y |
| y component. | |
| const double | z |
| z component. | |
A vector.
Class representing a vector in cartesian coordinates.
| vector3d::vector3d | ( | const double | x_, |
| const double | y_, | ||
| const double | z_ | ||
| ) |
vector3d constructor.
Constructs a vector at a x, y, z position.
| [in] | x_ | X position. |
| [in] | y_ | Y position. |
| [in] | z_ | Z position. |
Takes the cross product of two vectors.
V1 X V2.
| [in] | v1 | First vector. |
| [in] | v2 | Second vector. |
Takes the doc product of two vectors.
V1 . V2.
| [in] | v1 | First vector. |
| [in] | v2 | Second vector. |
| const double vector3d::length | ( | ) | const |
| const vector3d vector3d::normalize | ( | ) | const |