Added missing this in getLength method of LineSegment