operator == method

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

Exact component equality: q and -q are the same rotation but not equal (use sameRotation). The value is mutable, so a quaternion must not change while it is a key in a set or map.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is Quaternion &&
        x == other.x &&
        y == other.y &&
        z == other.z &&
        w == other.w;