absoluteRotate2 method
Rotates arg
by the absolute rotation of this
Returns arg
.
Primarily used by AABB transformation code.
Implementation
Vector2 absoluteRotate2(Vector2 arg) {
final m00 = _m3storage[0].abs();
final m01 = _m3storage[3].abs();
final m10 = _m3storage[1].abs();
final m11 = _m3storage[4].abs();
final argStorage = arg._v2storage;
final x = argStorage[0];
final y = argStorage[1];
argStorage[0] = x * m00 + y * m01;
argStorage[1] = x * m10 + y * m11;
return arg;
}