예제 #1
0
 public static void SetQuaternion(this QuaternionDT self, Quaternion quaternion)
 {
     self.x = quaternion.x;
     self.y = quaternion.y;
     self.z = quaternion.z;
     self.w = quaternion.w;
 }
예제 #2
0
 public static QuaternionDT Zero(this QuaternionDT self)
 {
     self   = new QuaternionDT();
     self.x = 0;
     self.y = 0;
     self.z = 0;
     self.w = 0;
     return(self);
 }
예제 #3
0
        public static Quaternion ToUnityQuaternion(this QuaternionDT self)
        {
            Quaternion quaternion = new Quaternion
            {
                x = self.x,
                y = self.y,
                z = self.z,
                w = self.w
            };

            return(quaternion);
        }
예제 #4
0
        public static QuaternionDT ToQuaternionDt(this Quaternion self)
        {
            QuaternionDT quaternionDt = new QuaternionDT
            {
                x = self.x,
                y = self.y,
                z = self.z,
                w = self.w
            };

            return(quaternionDt);
        }