コード例 #1
0
ファイル: Matrix3LR.cs プロジェクト: 15831944/WW
 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;
 }
コード例 #2
0
ファイル: Point3LR.cs プロジェクト: 15831944/WW
 public Point3LR(Vector3LR from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
コード例 #3
0
ファイル: Point3LR.cs プロジェクト: 15831944/WW
 public static Point3LR Subtract(Point3LR p, Vector3LR v)
 {
     return(new Point3LR(p.X - v.X, p.Y - v.Y, p.Z - v.Z));
 }
コード例 #4
0
ファイル: Point3LR.cs プロジェクト: 15831944/WW
 public static Point3LR Add(Point3LR p, Vector3LR v)
 {
     return(new Point3LR(p.X + v.X, p.Y + v.Y, p.Z + v.Z));
 }
コード例 #5
0
ファイル: Matrix3LR.cs プロジェクト: 15831944/WW
 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));
 }