transform method

Q transform(
  1. M mat
)

Implementation

Q transform(M mat) => _q(
  mat.m0*x + mat.m4*y + mat.m8*z + mat.m12*w,
  mat.m1*x + mat.m5*y + mat.m9*z + mat.m13*w,
  mat.m2*x + mat.m6*y + mat.m10*z + mat.m14*w,
  mat.m3*x + mat.m7*y + mat.m11*z + mat.m15*w,
);