CoordinateSystem2D
Description
Represents a bounded local coordinate system consisting of a reference point, rotation and scale. Typically used to store results of template-matching routines.
struct CoordinateSystem2D { CoordinateSystem2D(); CoordinateSystem2D( const Point2D& origin_, atl::real angle_, atl::real scale_ = 1.0f ); CoordinateSystem2D( const Vector2D& delta, atl::real angle_, atl::real scale_ = 1.0f )' CoordinateSystem2D( atl::real x_, atl::real y_, atl::real angle_, atl::real scale_ = 1.0f ); Point2D origin; atl::real angle; atl::real scale; Point2D Origin( void ) const; atl::real Angle( void ) const; atl::real Scale( void ) const; atl::real X( void ) const; atl::real Y( void ) const; bool operator == ( const CoordinateSystem2D& rhs ) const; bool operator != ( const CoordinateSystem2D& rhs ) const; };
Structure fields and default values (if defined) are described below:
struct CoordinateSystem2D
{
Point2D Origin;
Real Angle;
real Scale;
explicit CoordinateSystem2D
(
real Scale_ = 1.0f
) :
Scale(Scale_)
{}
Point2D Origin( void ) const { return Origin; };
Real Angle( void ) const { return Angle; };
real Scale( void ) const { return Scale; };
bool operator == ( const avl::CoordinateSystem2D& rhs ) const
{
return Origin == rhs.Origin &&
Angle == rhs.Angle && Scale == rhs.Scale
;
}
bool operator != ( const avl::CoordinateSystem2D& rhs ) const
{
return !(operator==(rhs));
}
};
