RECTd (class)

From PGE Wiki
Jump to: navigation, 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 RECTd.top double Top-value.

Example:

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