MicroStrategy interview question

Write an implementation for a 2D Line class.