struct
ArcRect
- Module
- Arc
- Header
#include "Arc/Core/ArcGeometry.h"- Namespace
Arcf
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 |
|---|---|---|
ArcRect() = default | ArcRect | |
constexpr ArcRect(float x, float y, float w, float h) : X(x), Y(y), W(w), H(h) | ArcRect |
Public functions
| Returns | Name | Description |
|---|---|---|
ArcRect | FromMinMax | |
bool | Contains | |
bool | Contains | |
bool | Intersects | |
ArcRect | Intersection | |
ArcRect | Expand | |
ArcRect | Expand | |
ArcRect | Offset | |
ArcVec2 | GetMin | |
ArcVec2 | GetMax | |
ArcVec2 | GetCenter | |
ArcVec2 | GetSize | |
ArcVec2 | GetTopLeft | |
ArcVec2 | GetTopRight | |
ArcVec2 | GetBottomLeft | |
ArcVec2 | GetBottomRight | |
bool | IsEmpty | |
bool | operator== | |
bool | operator!= |
Function details
ArcRect
C++
ArcRect() = defaultArcRect
C++
constexpr ArcRect(float x, float y, float w, float h) : X(x), Y(y), W(w), H(h)FromMinMax
C++
static ArcRect FromMinMax(const ArcVec2& min, const ArcVec2& max)Contains
C++
bool Contains(const ArcVec2& point) constContains
C++
bool Contains(const ArcRect& other) constIntersects
C++
bool Intersects(const ArcRect& other) constIntersection
C++
ArcRect Intersection(const ArcRect& other) constExpand
C++
ArcRect Expand(float amount) constExpand
C++
ArcRect Expand(const ArcMargin& margin) constOffset
C++
ArcRect Offset(const ArcVec2& delta) constGetMin
C++
ArcVec2 GetMin() constGetMax
C++
ArcVec2 GetMax() constGetCenter
C++
ArcVec2 GetCenter() constGetSize
C++
ArcVec2 GetSize() constGetTopLeft
C++
ArcVec2 GetTopLeft() constGetTopRight
C++
ArcVec2 GetTopRight() constGetBottomLeft
C++
ArcVec2 GetBottomLeft() constGetBottomRight
C++
ArcVec2 GetBottomRight() constIsEmpty
C++
bool IsEmpty() constoperator==
C++
bool operator==(const ArcRect& other) constoperator!=
C++
bool operator!=(const ArcRect& other) constGenerated from Arc/Core/ArcGeometry.h via arc.json · Nov 5, 2026Version 1.0.0