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; }
public static QuaternionDT Zero(this QuaternionDT self) { self = new QuaternionDT(); self.x = 0; self.y = 0; self.z = 0; self.w = 0; return(self); }
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); }
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); }