Exemplo n.º 1
0
 public Line(Math.Vector2i point1, Math.Vector2i point2)
 {
     lX1 = point1.x;
     lY1 = point1.y;
     lX2 = point2.x;
     lY2 = point2.y;
 }
Exemplo n.º 2
0
 /// <param name="dimensions">A Vector2 representing the width and height of the Ellipse</param>
 /// <param name="filled">Determines if the Ellipse is filled-in or not</param>
 public Ellipse(Math.Vector2i dimensions, bool filled = false)
 {
     ellipsWidth  = dimensions.x;
     ellipsHeight = dimensions.y;
     this.filled  = filled;
 }
Exemplo n.º 3
0
 /// <param name="dimensions">A Vector2 representing the width and height of the Rectangle</param>
 /// <param name="filled">Determines if the Rectangle is filled-in or not</param>
 public Rectangle(Math.Vector2i dimensions, bool filled = false)
 {
     rectWidth   = dimensions.x;
     rectHeight  = dimensions.y;
     this.filled = filled;
 }
Exemplo n.º 4
0
 /// <param name="dimensions">A Vector2 representing the width of the Triangle's base and the height of the Triangle's peak</param>
 public Triangle(Math.Vector2i dimensions)
 {
     triWidth  = dimensions.x;
     triHeight = dimensions.y;
 }