Esempio n. 1
0
 public static void FromCmQuaternion(this Quaternion self, CmQuaternion other)
 {
     self.X = other.X;
     self.Y = other.Y;
     self.Z = other.Z;
     self.W = other.W;
 }
Esempio n. 2
0
 public static void FromMedia3DQuaternion(this CmQuaternion self, Quaternion other)
 {
     self.X = (float)other.X;
     self.Y = (float)other.Y;
     self.Z = (float)other.Z;
     self.W = (float)other.W;
 }
Esempio n. 3
0
        public static CmQuaternion MirrorQuaternion(this CmQuaternion self)
        {
            //Log.Debug("Pre-Mirrored Value: (" + self.X + ", " + self.Y + ", " + self.Z + ", " + self.W + ")");
            self = new CmQuaternion(self.Z, self.W, self.X, self.Y);

            return(self);
        }
Esempio n. 4
0
 public static Quaternion ToMedia3DQuaternion(this CmQuaternion self)
 {
     return(new Quaternion(self.X, self.Y, self.Z, self.W));
 }
Esempio n. 5
0
 public static CmQuaternion Mirror(this CmQuaternion self)
 {
     return(new CmQuaternion(self.Z, self.W, self.X, self.Y));
 }