#include <Transform.h>
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.
Definition at line 11 of file Transform.h.
Public Member Functions | |
| 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) |
| 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.
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().
| void dsrpdb::Transform::set_translation | ( | Pt | tr | ) | [inline] |