1 #ifndef _utl_Segment_h_
2 #define _utl_Segment_h_
5 #include <utl/Vector.h>
const Point & GetEnd() const
Return the final point.
double GetLength() const
Return the length of the segment (ie the distance between begin and end).
double fLength
and so the length.
const Point & GetBegin() const
Return the initial point.
Vector fDirection
Compute the vector once.
Segment(const Point &b, const Point &e)
Construct the segment between the given two points.
const Vector & GetDirection() const
Return the (normalized) direction vector.
A segment joins two points.