operator == method

  1. @override
bool operator ==(
  1. Object o
)
override

Checks for equality. Two points are considered equal, if their coordinates match.

Implementation

@override
bool operator ==(Object o) {
  if (o is Point3) {
    return this.x == o.x && this.y == o.y && this.z == o.z;
  } else {
    return false;
  }
}