Esempio n. 1
0
        public static TSMatrix4x4 Rotate(TSQuaternion quaternion)
        {
            TSMatrix4x4 result;

            TSMatrix4x4.Rotate(ref quaternion, out result);
            return(result);
        }
Esempio n. 2
0
 public static void TRS(TSVector translation, TSQuaternion rotation, TSVector scale, out TSMatrix4x4 matrix)
 {
     matrix = TSMatrix4x4.Translate(translation) * TSMatrix4x4.Rotate(rotation) * TSMatrix4x4.Scale(scale);
 }