operator ^ method
Returns a new position with this
position logical-XORed with other
.
This is equivalent to:
final a = Pos(10, 20);
final b = Pos(30, 40);
final c = Pos(a.x ^ b.x, a.y ^ b.y);
Example
final a = Pos(10, 20);
final b = Pos(30, 40);
print(a ^ b); // => Pos(20, 60)
Implementation
Pos operator ^(Pos other) => Pos(x ^ other.x, y ^ other.y);