public Matrix2LR(Vector2LR column1, Vector2LR column2) { this.M00 = column1.X; this.M01 = column2.X; this.M10 = column1.Y; this.M11 = column2.Y; }
public Vector2LR Transform(Vector2LR vector) { return(new Vector2LR(this.M00 * vector.X + this.M01 * vector.Y, this.M10 * vector.X + this.M11 * vector.Y)); }
public static Point2LR Add(Point2LR p, Vector2LR v) { return(new Point2LR(p.X + v.X, p.Y + v.Y)); }
public static Point2LR Subtract(Point2LR p, Vector2LR v) { return(new Point2LR(p.X - v.X, p.Y - v.Y)); }
public Vector3LR(Vector2LR vector, LongRational z) { this.X = vector.X; this.Y = vector.Y; this.Z = z; }