RECTd (class)

From Moondust Wiki
Jump to navigation Jump to search

Same as RECT, but with double-values.

RECT class
Type Function/Field Return values/Value type Description
Constructor myRECT = newRECTd() RECTd Construct a new RECTd-Object
Field RECTd.bottom double Bottom-value.
Field RECTd.left double Left-value.
Field RECTd.right double Right-value.
Field double Top-value.


local pi = 3.14
local myRectd = newRECTd() = pi
myRectd.left = pi
myRectd.bottom = pi + 5.20
myRectd.right = pi * pi
--Do other stuff