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( float x, float y );
	Point2D ( int x, int y );
	Point2D ( float x, int y );
	Point2D ( int x, float y );

	float x;
	float y;

	float X( void ) const;
	float 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;
};

See also

Location, Point3D