Skip to content
kerrishotts edited this page Apr 1, 2013 · 2 revisions

(part of UI)

Returns: rect object

Parameters: origin (point), size (size)

Creates a rect object of the form { origin: {x: origin.x, y: origin.y}, size: {w: size.w, h: size.h} }.

Usage

var aRect = UI.makeRect ( UI.makePoint (10, 15), UI.makeSize (100, 150) );
// aRect is now { origin: { x: 10, y: 15 }, size: { w: 100, h: 150 } }

Version

0.3 Introduced; Docs Valid

Clone this wiki locally