![]() |
IMP
2.2.0
The Integrative Modeling Platform
|
Simple 3D transformation class. More...
#include <IMP/algebra/Transformation3D.h>
Inheritance diagram for IMP::algebra::Transformation3D:Public Member Functions | |
| Transformation3D () | |
| construct an invalid transformation | |
| Transformation3D (const Rotation3D &r, const Vector3D &t=Vector3D(0, 0, 0)) | |
| Transformation3D (const Vector3D &t) | |
| Transformation3D | get_inverse () const |
| const Rotation3D & | get_rotation () const |
| Vector3D | get_transformed (const Vector3D &o) const |
| transform | |
| const Vector3D & | get_translation () const |
| Vector3D | operator* (const Vector3D &v) const |
| apply transformation (rotate and then translate) | |
| Transformation3D | operator* (const Transformation3D &tr) const |
| const Transformation3D & | operator*= (const Transformation3D &o) |
| Transformation3D | operator/ (const Transformation3D &b) const |
| const Transformation3D & | operator/= (const Transformation3D &o) |
| void | show (std::ostream &out=std::cout) const |
The rotation is applied first, and then the point is translated.
Definition at line 30 of file Transformation3D.h.
| IMP::algebra::Transformation3D::Transformation3D | ( | const Rotation3D & | r, |
| const Vector3D & | t = Vector3D(0, 0, 0) |
||
| ) |
basic constructor
Definition at line 36 of file Transformation3D.h.
| IMP::algebra::Transformation3D::Transformation3D | ( | const Vector3D & | t | ) |
Construct a transformation with an identity rotation.
Definition at line 39 of file Transformation3D.h.
| Transformation3D IMP::algebra::Transformation3D::operator* | ( | const Transformation3D & | tr | ) | const |
compose two rigid transformation such that for any vector v (rt1*rt2)*v = rt1*(rt2*v)
Definition at line 50 of file Transformation3D.h.
Here is the call graph for this function:| Transformation3D IMP::algebra::Transformation3D::operator/ | ( | const Transformation3D & | b | ) | const |
Compute the transformation which, when composed with b, gives *this. That is a(x)== d(b(x)) for all x.
For consistency, this should probably have a nice name, but I don't know what name to give it.
Definition at line 63 of file Transformation3D.h.
Here is the call graph for this function: