IMP logo

IMP::algebra::Rotation2D Class Reference


Detailed Description

Stores a 2D rotation matrix.

Note:
This class requires the angles to be given in radians, and the convention used is that the rotations are performed rotating counterclockwise (right hand side convention).

This class is a geometric primitive. Also, this class is not not initialized by its default constructor.


Public Member Functions

double get_angle () const
 gets the angle
Rotation2D get_inverse () const
 Returns the matrix for the inverse rotation.
VectorD< 2 > get_rotated (const double x, const double y) const
 rotates a 2D point
VectorD< 2 > get_rotated (const VectorD< 2 > &o) const
 rotates a 2D point
 Rotation2D (double angle)
 Builds the matrix for the given angle.
void set_angle (double angle)
 sets the angle for the rotation
void show (std::ostream &out=std::cout, std::string delim=" ") const
 Prints the angle.

Member Function Documentation

VectorD<2> IMP::algebra::Rotation2D::get_rotated ( const VectorD< 2 > &  o  )  const

rotates a 2D point

Parameters:
[in] o a 2D vector to be rotated

void IMP::algebra::Rotation2D::set_angle ( double  angle  ) 

sets the angle for the rotation

Parameters:
[in] angle the angle


The documentation for this class was generated from the following files:

Generated on Mon Mar 8 23:08:47 2010 for IMP by doxygen 1.5.8