exactEquals function

bool exactEquals(
  1. dynamic a,
  2. dynamic b
)

Returns whether or not the vectors have exactly the same elements in the same position (when compared with ==)

@param {ReadonlyVec3} a The first vector. @param {ReadonlyVec3} b The second vector. @returns {Boolean} True if the vectors are equal, false otherwise.

Implementation

bool exactEquals(a, b) {
  return a[0] == b[0] && a[1] == b[1] && a[2] == b[2];
}