BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Rotations.h File Reference
Include dependency graph for Rotations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IRotation
 
class  IdentityRotation
 
class  RotationX
 
class  RotationY
 
class  RotationZ
 
class  RotationEuler
 

Functions

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

Detailed Description

Defines 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.h.

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: