コード例 #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;
 }
コード例 #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;
 }
コード例 #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);
        }
コード例 #4
0
 public static Quaternion ToMedia3DQuaternion(this CmQuaternion self)
 {
     return(new Quaternion(self.X, self.Y, self.Z, self.W));
 }
コード例 #5
0
 public static CmQuaternion Mirror(this CmQuaternion self)
 {
     return(new CmQuaternion(self.Z, self.W, self.X, self.Y));
 }