Ejemplo n.º 1
0
 public static Point3D ToMedia3DPoint(this CmVector self)
 {
     return(new Point3D(self.X, self.Y, self.Z));
 }
Ejemplo 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)));
 }
Ejemplo 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;
 }
Ejemplo n.º 4
0
 public static void FromCmQuaternion(this Vector3D self, CmVector other)
 {
     self.X = other.X;
     self.Y = other.Y;
     self.Z = other.Z;
 }
Ejemplo n.º 5
0
 public static Vector3D ToMedia3DVector(this CmVector self)
 {
     return(new Vector3D(self.X, self.Y, self.Z));
 }