IOLink
IOL_v1.2.0_release
|
Describes a spatial axis system, with direction vectors describing the three axes. More...
#include <iolink/property/SpatialDirections.h>
Public Member Functions | |
SpatialDirections () | |
Create a default spatial direction. More... | |
SpatialDirections (const Vector3d &columnDirection, const Vector3d &rowDirection) | |
Create a SpatialDirections instance from two vectors. More... | |
SpatialDirections (const SpatialDirections &other)=default | |
SpatialDirections & | operator= (const SpatialDirections &other)=default |
SpatialDirections (SpatialDirections &&other) noexcept=default | |
SpatialDirections & | operator= (SpatialDirections &&other) noexcept=default |
bool | operator== (const SpatialDirections &other) const |
bool | operator!= (const SpatialDirections &other) const |
const Vector3d & | columnDirection () const |
The direction vector following the column dimension (X) | |
const Vector3d & | rowDirection () const |
The direction vector following the row dimension (Y) | |
const Vector3d & | sliceDirection () const |
The direction vector following the slice dimension (Z) | |
std::string | toString () const |
Return a string decription of the spatial directions. | |
Describes a spatial axis system, with direction vectors describing the three axes.
Axes are defined in a right hand system, so the third direction can be computed from the first two ones.
iolink::SpatialDirections::SpatialDirections | ( | ) |
Create a default spatial direction.
default values are the following:
iolink::SpatialDirections::SpatialDirections | ( | const Vector3d & | columnDirection, |
const Vector3d & | rowDirection | ||
) |
Create a SpatialDirections instance from two vectors.
The slice direction vector will be computed by using the cross product of the two given direction.
columnDirection | column direction vector |
rowDirection | row direction vector |