Esempio n. 1
0
 public static SerializedQuaternion SerializeQuaternion(Quaternion source)
 {
     SerializedQuaternion sq = new SerializedQuaternion();
     sq.x = source.x;
     sq.y = source.y;
     sq.z = source.z;
     sq.w = source.w;
     return sq;
 }
Esempio n. 2
0
 public static Quaternion DeserializeQuaternion(SerializedQuaternion source)
 {
     return new Quaternion(source.x, source.y, source.z, source.w);
 }