Basic geometry, Line class