#include <Position2d.hpp>
Public Member Functions | |
Position2d (const ublas::fixed_vector< float_t, 2 > ¢er, float_t rotation) | |
void | assign (const ublas::fixed_vector< float_t, 2 > ¢er, float_t rotation) |
const ublas::fixed_vector < float_t, 2 > & | center () const |
float_t | rotation () const |
void | set_center (const ublas::fixed_vector< float_t, 2 > ¢er) |
void | set_rotation (float_t rotation) |
void | exponential (ublas::vector< float_t >::const_iterator &vector, Position2d &shape) const |
void | logarithm (const Position2d &shape, ublas::vector< float_t >::iterator &vector) const |
size_t | dimension () const |
Static Public Attributes | |
static const size_t | DIMENSION = 2 |
This class stores coordinates in the plane and a rotation angle. Thus, it can be used to describe the position of shapes in the plane. Note that the members exponential() and logarithm() are similar but not exactly the same as in the class ShapeInterface.
imaging::Position2d::Position2d | ( | const ublas::fixed_vector< float_t, 2 > & | center, | |
float_t | rotation | |||
) |
Constructs a Position2d object from center and rotation.
void imaging::Position2d::assign | ( | const ublas::fixed_vector< float_t, 2 > & | center, | |
float_t | rotation | |||
) |
Assigns center and rotation to the object.
const ublas::fixed_vector<float_t, 2>& imaging::Position2d::center | ( | ) | const [inline] |
Returns the center of the position.
float_t imaging::Position2d::rotation | ( | ) | const [inline] |
Returns the rotation of the position.
void imaging::Position2d::set_center | ( | const ublas::fixed_vector< float_t, 2 > & | center | ) | [inline] |
Sets the center of the position.
void imaging::Position2d::set_rotation | ( | float_t | rotation | ) | [inline] |
Sets the rotation of the position.
void imaging::Position2d::exponential | ( | ublas::vector< float_t >::const_iterator & | vector, | |
Position2d & | shape | |||
) | const |
void imaging::Position2d::logarithm | ( | const Position2d & | shape, | |
ublas::vector< float_t >::iterator & | vector | |||
) | const |
size_t imaging::Position2d::dimension | ( | ) | const [inline] |
Returns the data dimension of a position, i.e. 3.