BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Rotations.cpp File Reference
Include dependency graph for Rotations.cpp:

Go to the source code of this file.

Functions

IRotationcreateProduct (const IRotation &left, const IRotation &right)
 

Detailed Description

Implements IRotation classes.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Rotations.cpp.

Function Documentation

◆ createProduct()

IRotation* createProduct ( const IRotation left,
const IRotation right 
)

Returns concatenated rotation (first right, then left).

Definition at line 75 of file Rotations.cpp.

76 {
77  Transform3D tr_left = left.getTransform3D();
78  Transform3D tr_right = right.getTransform3D();
79  IRotation* p_result = IRotation::createRotation(tr_left * tr_right);
80  return p_result;
81 }
Pure virtual interface for rotations.
Definition: Rotations.h:27
virtual Transform3D getTransform3D() const =0
Returns transformation.
static IRotation * createRotation(const Transform3D &transform)
Definition: Rotations.cpp:28
Vector transformations in three dimensions.
Definition: Transform3D.h:28

References IRotation::createRotation(), and IRotation::getTransform3D().

Referenced by IParticle::createComposedRotation(), and IParticle::rotate().

Here is the call graph for this function: