equals method

bool equals(
  1. FVector other
)

Checks if two vectors are identical.

Implementation

bool equals(FVector other) {
  if (other.nRows != nRows) return false;
  Int32x4 result;
  var side1 = columnData.buffer.asInt32x4List();
  var side2 = other.columnData.buffer.asInt32x4List();
  result = side1[0] ^ side2[0];
  for (int i = 1; i < side1.length; ++i) {
    result |= side1[i] ^ side2[i];
  }
  return ((result.x | result.y | result.z | result.w) == 0);
}