Handle 3D transformations, such as space group definitions.
More...
#include <gcu/transform3d.h>
Handle 3D transformations, such as space group definitions.
- Since
- version 0.12
- See also
- SpaceGroup
Describes a spatial trnasformation obtained by the combination of a symmetry operation and a translation.
Definition at line 42 of file transform3d.h.
gcu::Transform3d::Transform3d |
( |
| ) |
|
The default constructor. Initializes all coordinates to 0.
gcu::Transform3d::Transform3d |
( |
Matrix const & |
m, |
|
|
Vector const & |
v |
|
) |
| |
- Parameters
-
m | a symmetry operation matrix. |
v | a translation vector. |
Constructs a new Transform3d from its symmetry operation matrix and its translation vector.
gcu::Transform3d::Transform3d |
( |
double |
s | ) |
|
- Parameters
-
Constructs a new Transform3d from a scalar matrix and a null translation vector.
- Parameters
-
row1 | first matrix row. |
row2 | second matrix row. |
row3 | third matrix row. |
translation | the translation vector. |
Constructs a new Transform3d from the three rows of its symmetry operation matrix and its translation vector.
gcu::Transform3d::Transform3d |
( |
double |
d[3][3], |
|
|
double |
t[3] |
|
) |
| |
- Parameters
-
d | the coefficients of a symmetry operation matrix. |
t | the coefficients of a translation vector. |
Constructs a new Transform3d from the coefficients of its symmetry operation matrix and its translation vector.
virtual gcu::Transform3d::~Transform3d |
( |
| ) |
|
|
virtual |
std::string gcu::Transform3d::DescribeAsString |
( |
| ) |
const |
- Returns
- the transform dexcription in CIF convention, such as "x,y,z".
std::string gcu::Transform3d::DescribeAsValues |
( |
| ) |
const |
- Returns
- the transform description in CML convention, limiting to the twelve first values, such as "1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0".
void gcu::Transform3d::Normalize |
( |
| ) |
|
Ensure that the translation vector coordinates are all in the interval [0,1[.
Vector gcu::Transform3d::operator* |
( |
Vector const & |
v | ) |
const |
- Parameters
-
v | the vector to transform. |
Transforms a vector (multiply by the symmetry matrix and add the translation vector).
- Returns
- the transformed vector.
- Parameters
-
Combines two Transform3d instances a vector.
- Returns
- the combination of the two transforms.
The documentation for this class was generated from the following file: