IMP
2.1.0
The Integrative Modeling Platform
|
Stores a 2D rotation matrix. More...
#include <IMP/algebra/Rotation2D.h>
Public Member Functions | |
Rotation2D (double angle) | |
Builds the matrix for the given angle. | |
double | get_angle () const |
gets the angle | |
Rotation2D | get_inverse () const |
Returns the matrix for the inverse rotation. | |
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 | |
void | set_angle (double angle) |
sets the angle for the rotation More... | |
void | show (std::ostream &out=std::cout) const |
Prints the angle. | |
See geometric primitives for more information.
Definition at line 34 of file Rotation2D.h.
[in] | o | a 2D vector to be rotated |
Definition at line 45 of file Rotation2D.h.
void IMP::algebra::Rotation2D::set_angle | ( | double | angle | ) |
[in] | angle | the angle |
Definition at line 69 of file Rotation2D.h.