Segment2D

Description

Represents a directed line segment described by its start- and end-point.

struct Segment2D
{
	Point2D point1;
	Point2D point2;

	Point2D Point1( void ) const;
	Point2D Point2( void ) const;
	atl::real X1( void ) const;
	atl::real Y1( void ) const;
	atl::real X2( void ) const;
	atl::real Y2( void ) const;

	bool operator == ( const Segment2D& rhs ) const;
	bool operator != ( const Segment2D& rhs ) const;

	atl::real Length() const;
}

Structure Fields

Type fields and default values (if defined) are described below:

Name Type Description
Point1 Point2D
Point2 Point2D