code: function(segment) {
                  return (this.start.eql(segment.start) && this.end.eql(segment.end)) ||
                      (this.start.eql(segment.end) && this.end.eql(segment.start));
                }
docs: Returns true iff the line segment is equal to the argument