Coordinate system axis data class. More...
#include <CoordinateSystemTransformation.h>
Public Member Functions | |
CoordinateSystem () | |
Default constructor makes default xyz system. | |
CoordinateSystem (const Eigen::Vector3d &a, const Eigen::Vector3d &b) | |
Right-handed coordinate system constructor from two perpendicular vectors. More... | |
bool | isRightHanded () const |
Yields whether the coordinate system is right handed. | |
Static Public Member Functions | |
static CoordinateSystem | random () |
Yields a randomly oriented right-handed coordinate system. | |
Data Fields | |
Eigen::Vector3d | x |
Axes. | |
Eigen::Vector3d | y |
Eigen::Vector3d | z |
Coordinate system axis data class.
Scine::Molassembler::Shapes::CoordinateSystem::CoordinateSystem | ( | const Eigen::Vector3d & | a, |
const Eigen::Vector3d & | b | ||
) |
Right-handed coordinate system constructor from two perpendicular vectors.
The z coordinate is initialized from the cross product of a
and b
a | The x coordinate of the coordinate system |
b | The y coordinate of the coordinate system |
a
and b
need to be orthogonal.