imaging::Position2d Class Reference

Stores the coordinates and the rotation of shapes in the plane. More...

#include <Position2d.hpp>

List of all members.

Public Member Functions

 Position2d (const ublas::fixed_vector< float_t, 2 > &center, float_t rotation)
void assign (const ublas::fixed_vector< float_t, 2 > &center, 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 > &center)
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


Detailed Description

Stores the coordinates and the rotation of shapes in the plane.

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.


Constructor & Destructor Documentation

imaging::Position2d::Position2d ( const ublas::fixed_vector< float_t, 2 > &  center,
float_t  rotation 
)

Constructs a Position2d object from center and rotation.


Member Function Documentation

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

Computes the exponential of the data at the current position of the iterator vector and stores it in shape.

References _center, and _rotation.

void imaging::Position2d::logarithm ( const Position2d shape,
ublas::vector< float_t >::iterator &  vector 
) const

Computes the logarithm of shape and stores it at the current position of the iterator vector.

References _center, and _rotation.

size_t imaging::Position2d::dimension (  )  const [inline]

Returns the data dimension of a position, i.e. 3.


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

Generated on Tue Feb 10 10:01:31 2009 for imaging2 by  doxygen 1.5.5