equals method

bool equals(
  1. Line3 line
)

line - Line3 to compare with this one.

Returns true if both line's start and end points are equal.

Implementation

bool equals(Line3 line) {
  return line.start.equals(start) && line.end.equals(end);
}