Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Examples

dsrpdb::Transform Struct Reference

#include <Transform.h>

List of all members.


Detailed Description

This class provides a simple rigid transformation matrix.

The matrix has a rotational an a translational part. However, it is not enforced that the rotational part is actually just a rotation (this is slightly tricky due to possible numeric errors.

Examples:

pdb_align_points.cc.

Definition at line 11 of file Transform.h.

Public Member Functions

 Transform ()
template<class TA, class TB>
 Transform (TA rot, TB trans)
template<class Point>
Point operator() (const Point &pt) const
template<class Pt>
void set_translation (Pt tr)
void write (std::ostream &out) const
double error (const Transform &o) const


Constructor & Destructor Documentation

template<class TA, class TB>
dsrpdb::Transform::Transform TA  rot,
TB  trans
[inline]
 

Construct a transform from a rotation matrix and an offset vector.

Definition at line 24 of file Transform.h.


Member Function Documentation

template<class Point>
Point dsrpdb::Transform::operator() const Point pt  )  const [inline]
 

Apply a transformation to a point.

Definition at line 44 of file Transform.h.

References dsrpdb::Point::x(), dsrpdb::Point::y(), and dsrpdb::Point::z().

template<class Pt>
void dsrpdb::Transform::set_translation Pt  tr  )  [inline]
 

Set the translation part of the transformation matrix.

Definition at line 58 of file Transform.h.


The documentation for this struct was generated from the following file: