rcsc/geom/line_2d.h
Represents the linear equation: aX + bY + c = 0
. This class is very useful to calculate the players or the ball path and check if a point or line intercepts another line.

Some methods of this class:
double dist( const Vector2D & p ) const
bool isParallel( const Line2D & line ) const
Vector2D intersection( const Line2D & line ) const
Line2D perpendicular( const Vector2D & p ) const
static Vector2D intersection( const Line2D & line1, const Line2D & line2 );
static Line2D angle_bisector( const Vector2D & origin, const AngleDeg & left, const AngleDeg & right )
References: