#ifndef D2LINESEGMENT_H
#define D2LINESEGMENT_H

/*!
\brief Line segment and with line segement intersection test. 
*/
class d2linesegment
{
public:

  /** Points defining the line segment. */
  point2<double> v[2];

  /** Do the two line segments intersect? */
  bool const intersects(d2linesegment const & s2) const;

  /** Anticlockwise rotation of the simplex about its center. */
  void rotate(double const theta);

  /** Shift the simplex. */
  void translate( pt2c & x );
};



#endif



