replace Matrix with Mat, Quaternion with Quat