struct
MiriRect
- Module
- Miri
- Header
#include "Miri/Core/MiriGeometry.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
float | X | Default 0.0f. |
float | Y | Default 0.0f. |
float | W | Default 0.0f. |
float | H | Default 0.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
MiriRect() = default | MiriRect | |
constexpr MiriRect(float x, float y, float w, float h) : X(x), Y(y), W(w), H(h) | MiriRect |
Public functions
| Returns | Name | Description |
|---|---|---|
MiriRect | FromMinMax | |
bool | Contains | |
bool | Contains | |
bool | Intersects | |
MiriRect | Intersection | |
MiriRect | Expand | |
MiriRect | Expand | |
MiriRect | Offset | |
MiriVec2 | GetMin | |
MiriVec2 | GetMax | |
MiriVec2 | GetCenter | |
MiriVec2 | GetSize | |
MiriVec2 | GetTopLeft | |
MiriVec2 | GetTopRight | |
MiriVec2 | GetBottomLeft | |
MiriVec2 | GetBottomRight | |
bool | IsEmpty | |
bool | operator== | |
bool | operator!= |
Function details
MiriRect
C++
MiriRect() = defaultMiriRect
C++
constexpr MiriRect(float x, float y, float w, float h) : X(x), Y(y), W(w), H(h)FromMinMax
C++
static MiriRect FromMinMax(const MiriVec2& min, const MiriVec2& max)Contains
C++
bool Contains(const MiriVec2& point) constContains
C++
bool Contains(const MiriRect& other) constIntersects
C++
bool Intersects(const MiriRect& other) constIntersection
C++
MiriRect Intersection(const MiriRect& other) constExpand
C++
MiriRect Expand(float amount) constExpand
C++
MiriRect Expand(const MiriMargin& margin) constOffset
C++
MiriRect Offset(const MiriVec2& delta) constGetMin
C++
MiriVec2 GetMin() constGetMax
C++
MiriVec2 GetMax() constGetCenter
C++
MiriVec2 GetCenter() constGetSize
C++
MiriVec2 GetSize() constGetTopLeft
C++
MiriVec2 GetTopLeft() constGetTopRight
C++
MiriVec2 GetTopRight() constGetBottomLeft
C++
MiriVec2 GetBottomLeft() constGetBottomRight
C++
MiriVec2 GetBottomRight() constIsEmpty
C++
bool IsEmpty() constoperator==
C++
bool operator==(const MiriRect& other) constoperator!=
C++
bool operator!=(const MiriRect& other) constGenerated from Miri/Core/MiriGeometry.h via miri.json · Dec 5, 2026Version 1.1.0