|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
Displacement and rotation in space. More...
#include <Euclid3D.h>
Public Member Functions | |
| Euclid3D () | |
| Default constructor. | |
| Euclid3D (const Vector3D &V, const Rotation3D &R) | |
| Constructor/. | |
| Euclid3D (double x, double y, double z, double vx, double vy, double vz) | |
| Constructor. | |
| bool | operator== (const Euclid3D &) const |
| bool | operator!= (const Euclid3D &) const |
| void | getAll (double &x, double &y, double &z, double &vx, double &vy, double &vz) const |
| Unpack. | |
| double | getX () const |
| Get displacement. | |
| double | getY () const |
| Get displacement. | |
| double | getZ () const |
| Get displacement. | |
| const Vector3D & | getVector () const |
| Get displacement. | |
| const Rotation3D & | getRotation () const |
| Get rotation. | |
| double | M (int row, int col) const |
| Get component. | |
| void | setX (double x) |
| Set displacement. | |
| void | setY (double y) |
| Set displacement. | |
| void | setZ (double z) |
| Set displacement. | |
| void | setDisplacement (const Vector3D &V) |
| Set displacement. | |
| void | setRotation (const Rotation3D &R) |
| Set rotation. | |
| Euclid3D | dot (const Euclid3D &rhs) const |
| Dot product. | |
| const Euclid3D & | dotBy (const Euclid3D &rhs) |
| Dot product with assign. | |
| Euclid3D | operator* (const Euclid3D &rhs) const |
| Dot product. | |
| const Euclid3D & | operator*= (const Euclid3D &rhs) |
| Dot product with assign. | |
| Euclid3D | inverse () const |
| Inverse. | |
| bool | isIdentity () const |
| Test for identity. | |
| bool | isPureTranslation () const |
| Test for translation. | |
| bool | isPureXRotation () const |
| Test for rotation. | |
| bool | isPureYRotation () const |
| Test for rotation. | |
| bool | isPureZRotation () const |
| Test for rotation. | |
Static Public Member Functions | |
| static Euclid3D | identity () |
| Make identity. | |
| static Euclid3D | translation (double x, double y, double z) |
| Make translation. | |
| static Euclid3D | XRotation (double angle) |
| Make rotation. | |
| static Euclid3D | YRotation (double angle) |
| Make rotation. | |
| static Euclid3D | ZRotation (double angle) |
| Make rotation. | |
Private Attributes | |
| Vector3D | V |
| Rotation3D | R |
| bool | is_identity |
Displacement and rotation in space.
Definition at line 68 of file Euclid3D.h.
|
inline |
Default constructor.
Definition at line 212 of file Euclid3D.h.
References is_identity, R, and V.
Referenced by dot(), dotBy(), identity(), inverse(), operator!=(), operator*(), operator*=(), operator==(), translation(), XRotation(), YRotation(), and ZRotation().
| Euclid3D::Euclid3D | ( | const Vector3D & | V, |
| const Rotation3D & | R ) |
| Euclid3D::Euclid3D | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | vx, | ||
| double | vy, | ||
| double | vz ) |
Dot product.
Definition at line 96 of file Euclid3D.cpp.
References dotBy(), and Euclid3D().
Dot product with assign.
Definition at line 102 of file Euclid3D.cpp.
References Euclid3D(), is_identity, R, and V.
Referenced by dot(), TBeamline< T >::getTotalTransform(), operator*(), and operator*=().
| void Euclid3D::getAll | ( | double & | x, |
| double & | y, | ||
| double & | z, | ||
| double & | vx, | ||
| double & | vy, | ||
| double & | vz ) const |
| const Rotation3D & Euclid3D::getRotation | ( | ) | const |
Get rotation.
Definition at line 64 of file Euclid3D.cpp.
References R.
Referenced by Ring::appendElement(), Ring::checkMidplane(), Ring::getRotationStartToEnd(), operator==(), and Ring::rotateToCyclCoordinates().
| const Vector3D & Euclid3D::getVector | ( | ) | const |
Get displacement.
Definition at line 59 of file Euclid3D.cpp.
References V.
Referenced by Ring::appendElement(), Ring::checkMidplane(), operator==(), and Ring::rotateToCyclCoordinates().
|
inline |
|
inline |
|
inline |
|
static |
Make identity.
Definition at line 147 of file Euclid3D.cpp.
References Euclid3D().
Referenced by BGeometryBase::getEntrancePatch(), BGeometryBase::getExitPatch(), NullGeometry::getTransform(), and NullGeometry::getTransform().
| Euclid3D Euclid3D::inverse | ( | ) | const |
Inverse.
Definition at line 121 of file Euclid3D.cpp.
References Euclid3D(), R, and V.
Referenced by Inverse().
|
inline |
| bool Euclid3D::isPureTranslation | ( | ) | const |
| bool Euclid3D::isPureXRotation | ( | ) | const |
| bool Euclid3D::isPureYRotation | ( | ) | const |
| bool Euclid3D::isPureZRotation | ( | ) | const |
|
inline |
| bool Euclid3D::operator!= | ( | const Euclid3D & | rhs | ) | const |
Definition at line 47 of file Euclid3D.cpp.
References Euclid3D(), R, and V.
Dot product.
Definition at line 110 of file Euclid3D.cpp.
References dotBy(), and Euclid3D().
Dot product with assign.
Definition at line 116 of file Euclid3D.cpp.
References dotBy(), and Euclid3D().
| bool Euclid3D::operator== | ( | const Euclid3D & | rhs | ) | const |
Definition at line 42 of file Euclid3D.cpp.
References Euclid3D(), R, and V.
| void Euclid3D::setDisplacement | ( | const Vector3D & | V | ) |
Set displacement.
Definition at line 84 of file Euclid3D.cpp.
References is_identity, Vector3D::isZero(), and V.
| void Euclid3D::setRotation | ( | const Rotation3D & | R | ) |
Set rotation.
Definition at line 90 of file Euclid3D.cpp.
References is_identity, Rotation3D::isIdentity(), and R.
| void Euclid3D::setX | ( | double | x | ) |
Set displacement.
Definition at line 69 of file Euclid3D.cpp.
References V.
Referenced by VarRadiusGeometry::getTransform().
| void Euclid3D::setY | ( | double | y | ) |
| void Euclid3D::setZ | ( | double | z | ) |
Set displacement.
Definition at line 79 of file Euclid3D.cpp.
References V.
Referenced by VarRadiusGeometry::getTransform().
|
static |
Make translation.
Definition at line 152 of file Euclid3D.cpp.
References Euclid3D(), and Rotation3D::Identity().
Referenced by StraightGeometry::getEntranceFrame(), RBendGeometry::getEntrancePatch(), StraightGeometry::getExitFrame(), RBendGeometry::getExitPatch(), StraightGeometry::getTotalTransform(), StraightGeometry::getTransform(), and StraightGeometry::getTransform().
|
static |
Make rotation.
Definition at line 157 of file Euclid3D.cpp.
References Euclid3D(), is_identity, and Rotation3D::XRotation().
|
static |
Make rotation.
Definition at line 164 of file Euclid3D.cpp.
References Euclid3D(), is_identity, and Rotation3D::YRotation().
Referenced by RBendGeometry::getEntranceFrame(), RBendGeometry::getEntrancePatch(), RBendGeometry::getExitFrame(), RBendGeometry::getExitPatch(), RBendGeometry::getTotalTransform(), and VarRadiusGeometry::getTransform().
|
static |
Make rotation.
Definition at line 171 of file Euclid3D.cpp.
References Euclid3D(), is_identity, and Rotation3D::ZRotation().
|
mutableprivate |
Definition at line 196 of file Euclid3D.h.
Referenced by dotBy(), Euclid3D(), Euclid3D(), Euclid3D(), isIdentity(), setDisplacement(), setRotation(), XRotation(), YRotation(), and ZRotation().
|
private |
Definition at line 195 of file Euclid3D.h.
Referenced by dotBy(), Euclid3D(), Euclid3D(), Euclid3D(), getAll(), getRotation(), inverse(), isPureTranslation(), isPureXRotation(), isPureYRotation(), isPureZRotation(), M(), operator!=(), operator==(), and setRotation().
|
private |
Definition at line 194 of file Euclid3D.h.
Referenced by dotBy(), Euclid3D(), Euclid3D(), Euclid3D(), getAll(), getVector(), getX(), getY(), getZ(), inverse(), isPureXRotation(), isPureYRotation(), isPureZRotation(), operator!=(), operator==(), setDisplacement(), setX(), setY(), and setZ().