2019-09-15 04:24:36 +00:00
|
|
|
---
|
|
|
|
title: "Rectangle"
|
|
|
|
date: 2019-09-14T20:37:23-07:00
|
|
|
|
weight: 30
|
|
|
|
---
|
|
|
|
|
|
|
|
To define a rectangle, give a minimum X and Y and a maximum X and Y.
|
|
|
|
|
|
|
|
```cs
|
2020-07-18 20:13:59 +00:00
|
|
|
var left = -1;
|
|
|
|
var top = -1;
|
|
|
|
var width = 2;
|
|
|
|
var height = 2;
|
|
|
|
var rectangle = new Rectangle(left, top, width, height);
|
2019-09-15 04:24:36 +00:00
|
|
|
```
|