Rect Class - stalbordboat/GameEngine GitHub Wiki
Ancestors
Object
Class Methods
rect = Rect.new x=0.0, y=0.0, w=0.0, h=0.0
Get an instance of the Rect object. The parameters are optional.
x: Floaty: Floatw: Floath: Float
Return: Rect
Attributes
rect.x
rect.x = x
Return: Float
rect.y
rect.y = y
Return: Float
rect.w
rect.w = w
Return: Float
rect.h
rect.h = h
Return: Float
Aliases
rect.width
rect.width = w
Return: Float
rect.height
rect.height = h
Return: Float