Fixing bug in LineSegment.getLenght, missing this.