Project Chrono: chrono::particlefactory::ChRandomParticleAlignment Class Reference

Public Member Functions | List of all members
chrono::particlefactory::ChRandomParticleAlignment Class Reference

## Description

BASE class for generators of random particle alignment.

By default it simply always returns quaternion {1,0,0,0} (no rotation) so it it is up to sub-classes to implement more sophisticated randomizations.

`#include <ChRandomParticleAlignment.h>`

Inheritance diagram for chrono::particlefactory::ChRandomParticleAlignment:
[legend]

## Public Member Functions
virtual ChQuaternion | RandomAlignment ()
| Function that creates a random alignment (as a rotation quaternion) each time it is called.

## Member Function Documentation

## ◆ RandomAlignment()

virtual ChQuaternion chrono::particlefactory::ChRandomParticleAlignment::RandomAlignment | ( |  | ) |
| inlinevirtual

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

Note: it must be implemented by children classes!

Reimplemented in chrono::particlefactory::ChRandomParticleAlignmentUniform.

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

- D:/W/B/src/chrono-9.0.1/src/chrono/particlefactory/ChRandomParticleAlignment.h