IMP Reference Guide  2.5.0 The Integrative Modeling Platform
IMP::algebra::Rotation2D Class Reference

Stores a 2D rotation matrix. More...

#include <IMP/algebra/Rotation2D.h>

Inheritance diagram for IMP::algebra::Rotation2D:

## 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).

Definition at line 36 of file Rotation2D.h.

## Public Member Functions

Rotation2D (double angle)
Builds the matrix for the given angle. More...

double get_angle () const
gets the angle More...

Rotation2D get_inverse () const
Returns the matrix for the inverse rotation. More...

Vector2D get_rotated (const Vector2D &o) const
rotates a 2D point More...

Vector2D get_rotated (const double x, const double y) const
rotates a 2D point More...

void set_angle (double angle)
sets the angle for the rotation More...

void show (std::ostream &out=std::cout) const
Prints the angle. More...

## Constructor & Destructor Documentation

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

Builds the matrix for the given angle.

Definition at line 41 of file Rotation2D.h.

## Member Function Documentation

 double IMP::algebra::Rotation2D::get_angle ( ) const

gets the angle

Definition at line 78 of file Rotation2D.h.

 Rotation2D IMP::algebra::Rotation2D::get_inverse ( ) const

Returns the matrix for the inverse rotation.

Definition at line 61 of file Rotation2D.h.

Here is the call graph for this function:

 Vector2D IMP::algebra::Rotation2D::get_rotated ( const Vector2D & o ) const

rotates a 2D point

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

Definition at line 47 of file Rotation2D.h.

Here is the call graph for this function:

 Vector2D IMP::algebra::Rotation2D::get_rotated ( const double x, const double y ) const

rotates a 2D point

Definition at line 54 of file Rotation2D.h.

Here is the call graph for this function:

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

sets the angle for the rotation

Parameters
 [in] angle the angle

Definition at line 71 of file Rotation2D.h.

 void IMP::algebra::Rotation2D::show ( std::ostream & out = std::cout ) const

Prints the angle.

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