transform method
- Vector3 arg
Transform arg
of type Vector3 using the transformation defined by
this.
Implementation
Vector3 transform(Vector3 arg) {
final argStorage = arg._v3storage;
final x_ = (_m3storage[0] * argStorage[0]) +
(_m3storage[3] * argStorage[1]) +
(_m3storage[6] * argStorage[2]);
final y_ = (_m3storage[1] * argStorage[0]) +
(_m3storage[4] * argStorage[1]) +
(_m3storage[7] * argStorage[2]);
final z_ = (_m3storage[2] * argStorage[0]) +
(_m3storage[5] * argStorage[1]) +
(_m3storage[8] * argStorage[2]);
arg
..x = x_
..y = y_
..z = z_;
return arg;
}