Esempio n. 1
0
 public static Point3D ToMedia3DPoint(this CmVector self)
 {
     return(new Point3D(self.X, self.Y, self.Z));
 }
Esempio n. 2
0
 public static float Length(this CmVector self)
 {
     return(MathF.Sqrt((self.X * self.X) + (self.Y * self.Y) + (self.Z * self.Z)));
 }
Esempio n. 3
0
 public static void FromMedia3DQuaternion(this CmVector self, Vector3D other)
 {
     self.X = (float)other.X;
     self.Y = (float)other.Y;
     self.Z = (float)other.Z;
 }
Esempio n. 4
0
 public static void FromCmQuaternion(this Vector3D self, CmVector other)
 {
     self.X = other.X;
     self.Y = other.Y;
     self.Z = other.Z;
 }
Esempio n. 5
0
 public static Vector3D ToMedia3DVector(this CmVector self)
 {
     return(new Vector3D(self.X, self.Y, self.Z));
 }