Public Member Functions | Static Public Member Functions | List of all members
axisAngle Class Reference

A coordinateRotation specified by a rotation axis and a rotation angle about that axis. More...

Inheritance diagram for axisAngle:
Inheritance graph
[legend]
Collaboration diagram for axisAngle:
Collaboration graph
[legend]

Public Member Functions

 TypeNameNoDebug ("axisAngle")
 
 axisAngle ()
 
 axisAngle (const axisAngle &crot)
 
 axisAngle (const vector &axis, scalar angle, bool degrees)
 
 axisAngle (const vector::components axis, scalar angle, bool degrees)
 
 axisAngle (const dictionary &dict)
 
autoPtr< coordinateRotationclone () const
 
virtual ~axisAngle ()=default
 
virtual void clear ()
 
virtual tensor R () const
 
virtual void write (Ostream &os) const
 
virtual void writeEntry (const word &keyword, Ostream &os) const
 
- Public Member Functions inherited from coordinateRotation
 TypeNameNoDebug ("coordinateRotation")
 
 declareRunTimeSelectionTable (autoPtr, coordinateRotation, dictionary,(const dictionary &dict),(dict))
 
virtual ~coordinateRotation ()=default
 

Static Public Member Functions

static tensor rotation (const vector &axis, const scalar angle, bool degrees=false)
 
- Static Public Member Functions inherited from coordinateRotation
static autoPtr< coordinateRotationNew (const dictionary &dict)
 

Additional Inherited Members

- Static Protected Member Functions inherited from coordinateRotation
static vector findOrthogonal (const vector &axis)
 

Detailed Description

A coordinateRotation specified by a rotation axis and a rotation angle about that axis.

rotation
{
    type        axisAngle;
    axis        (1 0 0);
    angle       90;
}


Dictionary entries

Property Description Required Default
type Type name: axisAngle yes
axis Axis of rotation (vector) yes
angle Rotation angle yes
degrees The angle is in degrees no true
Note
The rotation axis will be normalized internally.
Source files

Definition at line 95 of file axisAngleRotation.H.

Constructor & Destructor Documentation

◆ axisAngle() [1/5]

axisAngle ( )

Definition at line 75 of file axisAngleRotation.C.

◆ axisAngle() [2/5]

axisAngle ( const axisAngle crot)

Definition at line 84 of file axisAngleRotation.C.

◆ axisAngle() [3/5]

axisAngle ( const vector axis,
scalar  angle,
bool  degrees 
)

Definition at line 96 of file axisAngleRotation.C.

◆ axisAngle() [4/5]

axisAngle ( const vector::components  axis,
scalar  angle,
bool  degrees 
)

Definition at line 112 of file axisAngleRotation.C.

◆ axisAngle() [5/5]

axisAngle ( const dictionary dict)
explicit

Definition at line 127 of file axisAngleRotation.C.

◆ ~axisAngle()

virtual ~axisAngle ( )
virtualdefault

Member Function Documentation

◆ TypeNameNoDebug()

TypeNameNoDebug ( "axisAngle"  )

◆ clone()

autoPtr<coordinateRotation> clone ( ) const
inlinevirtual

Implements coordinateRotation.

Definition at line 141 of file axisAngleRotation.H.

◆ rotation()

Foam::tensor rotation ( const vector axis,
const scalar  angle,
bool  degrees = false 
)
static

Definition at line 58 of file axisAngleRotation.C.

References Foam::degToRad(), SphericalTensor< scalar >::I, Foam::mag(), and quaternion::R().

Here is the call graph for this function:

◆ clear()

void clear ( )
virtual

Implements coordinateRotation.

Definition at line 140 of file axisAngleRotation.C.

References Foam::Zero.

◆ R()

Foam::tensor R ( ) const
virtual

Implements coordinateRotation.

Definition at line 147 of file axisAngleRotation.C.

◆ write()

void write ( Ostream os) const
virtual

Implements coordinateRotation.

Definition at line 153 of file axisAngleRotation.C.

References os().

Here is the call graph for this function:

◆ writeEntry()

void writeEntry ( const word keyword,
Ostream os 
) const
virtual

Implements coordinateRotation.

Definition at line 161 of file axisAngleRotation.C.

References os(), and Foam::type().

Here is the call graph for this function:

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