Ejemplo n.º 1
0
 public Matrix3LR(Vector3LR column1, Vector3LR column2, Vector3LR column3)
 {
     this.M00 = column1.X;
     this.M01 = column2.X;
     this.M02 = column3.X;
     this.M10 = column1.Y;
     this.M11 = column2.Y;
     this.M12 = column3.Y;
     this.M20 = column1.Z;
     this.M21 = column2.Z;
     this.M22 = column3.Z;
 }
Ejemplo n.º 2
0
 public Point3LR(Vector3LR from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
Ejemplo n.º 3
0
 public static Point3LR Subtract(Point3LR p, Vector3LR v)
 {
     return(new Point3LR(p.X - v.X, p.Y - v.Y, p.Z - v.Z));
 }
Ejemplo n.º 4
0
 public static Point3LR Add(Point3LR p, Vector3LR v)
 {
     return(new Point3LR(p.X + v.X, p.Y + v.Y, p.Z + v.Z));
 }
Ejemplo n.º 5
0
 public Vector3LR Transform(Vector3LR vector)
 {
     return(new Vector3LR(this.M00 * vector.X + this.M01 * vector.Y + this.M02 * vector.Z, this.M10 * vector.X + this.M11 * vector.Y + this.M12 * vector.Z, this.M20 * vector.X + this.M21 * vector.Y + this.M22 * vector.Z));
 }