|
ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Define a rectangular area with a bottom-left origin
Public Member Functions | |
| bool | contains (const float X, const float Y) const |
| bool | contains (const Rect &R) const |
| void | intersect (const Rect &A, const Rect &B) |
Public Attributes | |
| float | x {0.0f} |
| float | y {0.0f} |
| float | width {0.0f} |
| float | height {0.0f} |
|
nodiscardinline |
Returns true if the given point is inside the rect
|
nodiscardinline |
Returns true if the given rect is inside the rect
|
inline |
The rect is the result of the intersection between two rects
| float height {0.0f} |
Height
| float width {0.0f} |
Width
| float x {0.0f} |
Bottom-Left corner X position
| float y {0.0f} |
Bottom-Left corner Y position
1.7.0