Skip to content

Ui.makeSizeFromPoint

kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of UI)

Returns: size object

Parameters: aPoint (point)

Creates a size object from the given point.

Usage

var aPoint = UI.makePoint ( 100, 150 );
var aSize = UI.makeSizeFromPoint ( aPoint );
// aPoint is now { x: 100, y: 150 }
// aSize is now { w: 100, h: 150 }

Version

0.3 Introduced; Docs Valid

Clone this wiki locally