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. |
rotates a 2D point
[in] | o | a 2D vector to be rotated |
void IMP::algebra::Rotation2D::set_angle | ( | double | angle | ) |
sets the angle for the rotation
[in] | angle | the angle |