public Line(Math.Vector2i point1, Math.Vector2i point2) { lX1 = point1.x; lY1 = point1.y; lX2 = point2.x; lY2 = point2.y; }
/// <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; }
/// <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; }
/// <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; }