Пример #1
0
 public static Quaternion ToUnityTypeOrDefault(ArenaServices.Quaternion v, Quaternion d)
 {
     if (v == null)
     {
         return(d);
     }
     return(ToUnityType(v));
 }
Пример #2
0
 public static Quaternion ToUnityType(ArenaServices.Quaternion v)
 {
     return(new Quaternion
     {
         x = v.X,
         y = v.Y,
         z = v.Z,
         w = v.W
     });
 }