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; }
public Point3LR(Vector3LR from) { this.X = from.X; this.Y = from.Y; this.Z = from.Z; }
public static Point3LR Subtract(Point3LR p, Vector3LR v) { return(new Point3LR(p.X - v.X, p.Y - v.Y, p.Z - v.Z)); }
public static Point3LR Add(Point3LR p, Vector3LR v) { return(new Point3LR(p.X + v.X, p.Y + v.Y, p.Z + v.Z)); }
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)); }