Whoops - forgot an @api.
Add a vector() method to the LineSegment class.

This returns a vector between the two endpoints of the line segment.