MicroStrategy Interview Question

Write an implementation for a 2D Line class.