BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Rotations.cpp File Reference

Implements IRotation classes. More...

Include dependency graph for Rotations.cpp:

Go to the source code of this file.

Functions

IRotationcreateProduct (const IRotation &left, const IRotation &right)
 Returns concatenated rotation (first right, then left). More...
 

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 70 of file Rotations.cpp.

71 {
72  Transform3D tr_left = left.getTransform3D();
73  Transform3D tr_right = right.getTransform3D();
74  IRotation* p_result = IRotation::createRotation(tr_left * tr_right);
75  return p_result;
76 }
Abstract base class for rotations.
Definition: Rotations.h:28
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:26

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

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

Here is the call graph for this function: