bonk-docs/content/shapes/rectangle.md

265 B

title date weight
Rectangle 2019-09-14T20:37:23-07:00 30

To define a rectangle, give a minimum X and Y and a maximum X and Y.

var minX = -1;
var minY = -1;
var maxX = 1;
var maxY = 1;
var rectangle = new Rectangle(minX, minY, maxX, maxY);