Rectangle.Rectangle

Rectangle constructor

Initializes a new instance of the Rectangle struct.

public Rectangle(float x, float y, float width, float height)
Parameter Type Description
x Single The x coordinate (top left corner of the rectangle)
y Single The y coordinate (top left corner of the rectangle)
width Single The width of the rectangle
height Single The height of the rectangle

See Also