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