Vector3 transform(Matrix3 matrix) { return Vector3( matrix.a1 * x + matrix.a2 * y + matrix.a3 * z, matrix.b1 * x + matrix.b2 * y + matrix.b3 * z, matrix.c1 * x + matrix.c2 * y + matrix.c3 * z, ); }