Point2D
Description
Point2D represents a two-dimensional point in Cartesian system. It is also building block of Path. If integer based substitute is needed, one should use Location.
struct Point2D { Point2D(); Point2D( atl::real x, atl::real y ); Point2D ( int x, int y ); Point2D ( real x, int y ); Point2D ( int x, real y ); atl::real x; atl::real y; atl::real X( void ) const; atl::real Y( void ) const; bool operator < ( const Point2D& rhs ) const; bool operator > ( const Point2D& rhs ) const; bool operator == ( const Point2D& rhs ) const; bool operator != ( const Point2D& rhs ) const; };
Structure fields and default values (if defined) are described below:
struct Point2D
{
Real X;
Real Y;
Real X( void ) const { return X; };
Real Y( void ) const { return Y; };
bool operator == ( const avl::Point2D& rhs ) const
{
return X == rhs.X &&
Y == rhs.Y;
}
bool operator != ( const avl::Point2D& rhs ) const
{
return !(operator==(rhs));
}
};
