alvarado: @ADD: A simple class to represent line segments (tline<T>) has being added. Besides the storage of the begin and end points, this class provides some simple operations like detection of intersection with other lines or rectangles and minimal distance between a point and the line segment.