IMP Reference Guide
2.8.0
The Integrative Modeling Platform
|
A reference frame in 3D. More...
#include <IMP/algebra/ReferenceFrame3D.h>
A reference frame in 3D.
See geometric primitives for more information.
Definition at line 21 of file ReferenceFrame3D.h.
Public Member Functions | |
ReferenceFrame3D () | |
Create the default reference frame. More... | |
ReferenceFrame3D (const Transformation3D &tr) | |
A reference frame specified by a transformation matrix. More... | |
Vector3D | get_global_coordinates (const Vector3D &v) const |
ReferenceFrame3D | get_global_reference_frame (const ReferenceFrame3D &v) const |
Vector3D | get_local_coordinates (const Vector3D &v) const |
ReferenceFrame3D | get_local_reference_frame (const ReferenceFrame3D &v) const |
const Transformation3D & | get_transformation_from () const |
const Transformation3D & | get_transformation_to () const |
void | show (std::ostream &out=std::cout) const |
IMP::algebra::ReferenceFrame3D::ReferenceFrame3D | ( | ) |
Create the default reference frame.
That is, the origin with x,y,z axis as the principal axes.
Definition at line 37 of file ReferenceFrame3D.h.
|
explicit |
A reference frame specified by a transformation matrix.
Constructs a reference frame using transformation tr
tr | a transformation from local coordinates in this constructed reference frame to the global coordinates (equiv., tr brings the origin of the global frame to the origin of this frame, in global coordinates), |
Definition at line 48 of file ReferenceFrame3D.h.
Assume the input vector is in local coordinates and transform it to global ones.
Definition at line 61 of file ReferenceFrame3D.h.
ReferenceFrame3D IMP::algebra::ReferenceFrame3D::get_global_reference_frame | ( | const ReferenceFrame3D & | v | ) | const |
Assume the input vector is in local coordinates and transform it to global ones.
Definition at line 71 of file ReferenceFrame3D.h.
Assume the input vector is in global coordinates and get the local coordinates.
Definition at line 66 of file ReferenceFrame3D.h.
ReferenceFrame3D IMP::algebra::ReferenceFrame3D::get_local_reference_frame | ( | const ReferenceFrame3D & | v | ) | const |
Assume the input vector is in global coordinates and get the local coordinates.
Definition at line 76 of file ReferenceFrame3D.h.
const Transformation3D& IMP::algebra::ReferenceFrame3D::get_transformation_from | ( | ) | const |
Get the transformation from the origin of this reference frame to the origin of the global frame (both in global coordinates).
Definition at line 56 of file ReferenceFrame3D.h.
const Transformation3D& IMP::algebra::ReferenceFrame3D::get_transformation_to | ( | ) | const |
Get the transformation that brings the origin of the global reference frame to the origin of this frame (both in global coordinates).
Definition at line 53 of file ReferenceFrame3D.h.