![]() |
Lysa
0.0
Lysa 3D Engine
|
An axis-aligned 2-D rectangle defined by position and size.
Lua full name: lysa.Rect
Public Member Functions | |
| boolean | contains (x: number, y: number) |
| Returns true if the given point is inside this rect. More... | |
| boolean | contains (rect: Rect) |
| Returns true if the given rect is fully inside this rect. More... | |
| nil | intersect (a: Rect, b: Rect) |
| Sets this rect to the intersection of a and b. More... | |
Properties | |
| number | x |
| Constructor: Rect() Rect(x, y, width, height) | |
| number | y |
| Bottom edge Y position in screen/virtual space. | |
| number | width |
| Width of the rectangle. | |
| number | height |
| Height of the rectangle. | |
|
Returns true if the given point is inside this rect.
| x | number |
| y | number |
|
| number x |
Constructor: Rect() Rect(x, y, width, height)
| number y |
Bottom edge Y position in screen/virtual space.
| number width |
Width of the rectangle.
| number height |
Height of the rectangle.