Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
Float rectangle struct. More...
#include <engine_structs.h>
Public Member Functions | |
Rect2 () | |
Rect2 (float x, float y, float width, float height) | |
bool | is_zero () const |
glm::vec2 | top_left () const |
glm::vec2 | bottom_right () const |
Public Attributes | |
float | x |
float | y |
float | width |
float | height |
Float rectangle struct.
|
inline |
|
inline |
glm::vec2 Rect2::bottom_right | ( | ) | const |
bool Rect2::is_zero | ( | ) | const |
glm::vec2 Rect2::top_left | ( | ) | const |
float Rect2::height |
float Rect2::width |
float Rect2::x |
float Rect2::y |