Пример #1
0
 public Point4d PreMul(Point4d p)
 {
     return(new Point4d(p.X * this.M00 + p.Y * this.M10 + p.Z * this.M20 + p.W * this.M30,
                        p.X * this.M01 + p.Y * this.M11 + p.Z * this.M21 + p.W * this.M31,
                        p.X * this.M02 + p.Y * this.M12 + p.Z * this.M22 + p.W * this.M32,
                        p.X * this.M03 + p.Y * this.M13 + p.Z * this.M23 + p.W * this.M33));
 }
Пример #2
0
 public Point4d Mul(Point4d p)
 {
     return(new Point4d(this.M00 * p.X + this.M01 * p.Y + this.M02 * p.Z + this.M03 * p.W,
                        this.M10 * p.X + this.M11 * p.Y + this.M12 * p.Z + this.M13 * p.W,
                        this.M20 * p.X + this.M21 * p.Y + this.M22 * p.Z + this.M23 * p.W,
                        this.M30 * p.X + this.M31 * p.Y + this.M32 * p.Z + this.M33 * p.W));
 }