bonk-docs/content/shapes/rectangle.md

17 lines
265 B
Markdown

---
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
var minX = -1;
var minY = -1;
var maxX = 1;
var maxY = 1;
var rectangle = new Rectangle(minX, minY, maxX, maxY);
```