chrono::particlefactory::ChRandomParticleAlignmentUniform Class Reference

Description

Class for generator of random particle alignment.

The S3 space is not uniformly sampled - this is a quick approximation anyway.

#include <ChRandomParticleAlignment.h>

Inheritance diagram for chrono::particlefactory::ChRandomParticleAlignmentUniform:
Collaboration diagram for chrono::particlefactory::ChRandomParticleAlignmentUniform:

Public Member Functions

virtual ChQuaternion RandomAlignment ()
 Function that creates a random alignment (as a rotation quaternion) each time it is called. More...
 

Member Function Documentation

virtual ChQuaternion chrono::particlefactory::ChRandomParticleAlignmentUniform::RandomAlignment ( )
virtual

Function that creates a random alignment (as a rotation quaternion) each time it is called.

The alignment is a random polar rotation.

Reimplemented from chrono::particlefactory::ChRandomParticleAlignment.