Draw a line beginning at 'start'. If is_endpoint is true, use 'vec' as the endpoint of the segment. Otherwise interpret it as the direction of the line. FIXME: Think of a better way to distinguish between the two constructors of lines.
Here is the call graph for this function: