equals method

bool equals(
  1. Vec3 v
)

Is v == to this

Implementation

bool equals (Vec3 v ) {
  return v.x == x && v.y == y && v.z == z;
}