OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Attributes | List of all members
CoordinateSystemTrafo Class Reference

#include <CoordinateSystemTrafo.h>

Collaboration diagram for CoordinateSystemTrafo:
Collaboration graph
[legend]

Public Member Functions

 CoordinateSystemTrafo ()
 
 CoordinateSystemTrafo (const CoordinateSystemTrafo &right)
 
 CoordinateSystemTrafo (const Vector_t &origin, const Quaternion &orientation)
 
Vector_t transformTo (const Vector_t &r) const
 
Vector_t transformFrom (const Vector_t &r) const
 
Vector_t rotateTo (const Vector_t &r) const
 
Vector_t rotateFrom (const Vector_t &r) const
 
void invert ()
 
CoordinateSystemTrafo inverted () const
 
CoordinateSystemTrafooperator= (const CoordinateSystemTrafo &right)=default
 
CoordinateSystemTrafo operator* (const CoordinateSystemTrafo &right) const
 
void operator*= (const CoordinateSystemTrafo &right)
 
Vector_t getOrigin () const
 
Quaternion getRotation () const
 
void print (std::ostream &) const
 

Private Attributes

Vector_t origin_m
 
Quaternion orientation_m
 
Tenzor< double, 3 > rotationMatrix_m
 

Detailed Description

Definition at line 8 of file CoordinateSystemTrafo.h.

Constructor & Destructor Documentation

◆ CoordinateSystemTrafo() [1/3]

CoordinateSystemTrafo::CoordinateSystemTrafo ( )

Definition at line 6 of file CoordinateSystemTrafo.cpp.

◆ CoordinateSystemTrafo() [2/3]

CoordinateSystemTrafo::CoordinateSystemTrafo ( const CoordinateSystemTrafo right)

Definition at line 12 of file CoordinateSystemTrafo.cpp.

◆ CoordinateSystemTrafo() [3/3]

CoordinateSystemTrafo::CoordinateSystemTrafo ( const Vector_t origin,
const Quaternion orientation 
)

Definition at line 18 of file CoordinateSystemTrafo.cpp.

Member Function Documentation

◆ getOrigin()

Vector_t CoordinateSystemTrafo::getOrigin ( ) const
inline

◆ getRotation()

Quaternion CoordinateSystemTrafo::getRotation ( ) const
inline

◆ invert()

void CoordinateSystemTrafo::invert ( )

Definition at line 25 of file CoordinateSystemTrafo.cpp.

References Quaternion::conjugate(), orientation_m, origin_m, Quaternion::rotate(), rotationMatrix_m, and transpose().

Referenced by inverted().

Here is the call graph for this function:

◆ inverted()

CoordinateSystemTrafo CoordinateSystemTrafo::inverted ( ) const
inline

◆ operator*()

CoordinateSystemTrafo CoordinateSystemTrafo::operator* ( const CoordinateSystemTrafo right) const

Definition at line 31 of file CoordinateSystemTrafo.cpp.

◆ operator*=()

void CoordinateSystemTrafo::operator*= ( const CoordinateSystemTrafo right)

◆ operator=()

CoordinateSystemTrafo& CoordinateSystemTrafo::operator= ( const CoordinateSystemTrafo right)
default

◆ print()

void CoordinateSystemTrafo::print ( std::ostream &  os) const
inline

Definition at line 53 of file CoordinateSystemTrafo.h.

References Quaternion::conjugate(), orientation_m, origin_m, and Quaternion::rotate().

Referenced by operator<<().

Here is the call graph for this function:

◆ rotateFrom()

Vector_t CoordinateSystemTrafo::rotateFrom ( const Vector_t r) const
inline

◆ rotateTo()

Vector_t CoordinateSystemTrafo::rotateTo ( const Vector_t r) const
inline

◆ transformFrom()

Vector_t CoordinateSystemTrafo::transformFrom ( const Vector_t r) const
inline

◆ transformTo()

Vector_t CoordinateSystemTrafo::transformTo ( const Vector_t r) const
inline

Member Data Documentation

◆ orientation_m

Quaternion CoordinateSystemTrafo::orientation_m
private

Definition at line 36 of file CoordinateSystemTrafo.h.

Referenced by getRotation(), invert(), operator*=(), and print().

◆ origin_m

Vector_t CoordinateSystemTrafo::origin_m
private

Definition at line 35 of file CoordinateSystemTrafo.h.

Referenced by getOrigin(), invert(), operator*=(), print(), transformFrom(), and transformTo().

◆ rotationMatrix_m

Tenzor<double, 3> CoordinateSystemTrafo::rotationMatrix_m
private

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