faunus
Public Member Functions | Public Attributes | List of all members
Faunus::move::GroupRotator Class Reference

Helper class to translate a group. More...

#include <clustermove.h>

Inheritance diagram for Faunus::move::GroupRotator:
Inheritance graph
[legend]
Collaboration diagram for Faunus::move::GroupRotator:
Collaboration graph
[legend]

Public Member Functions

 GroupRotator (double displacement_factor, const Point &rotation_axis=Point::Zero())
 
std::function< void(Group &)> getLambda (Geometry::BoundaryFunction boundary, const Point &rotation_origin, Random &random)
 Lambda to rotate group in cluster. More...
 
- Public Member Functions inherited from Faunus::move::GroupMover
 GroupMover (double displacement_factor, const Point &direction)
 

Public Attributes

double current_displacement = 0.0
 Current displacement angle.
 
- Public Attributes inherited from Faunus::move::GroupMover
Average< double > mean_square_displacement
 Must be updated manually.
 
const double displacement_factor
 Displacement to be scaled by a random number.
 
const Point direction
 Directions or axis of translation or rotation.
 

Detailed Description

Helper class to translate a group.

If direction is zero, then generate random rotation axis

Member Function Documentation

◆ getLambda()

std::function< void(Group &)> Faunus::move::GroupRotator::getLambda ( Geometry::BoundaryFunction  boundary,
const Point rotation_origin,
Random random 
)

Lambda to rotate group in cluster.

Lambda to rotate a group.

Will set a random rotation axis and angle.


The documentation for this class was generated from the following files: