struct

ArcRect

Module
Arc
Header
#include "Arc/Core/ArcGeometry.h"
Namespace
Arcf

Properties

TypeNameDescription
floatXDefault 0.0f.
floatYDefault 0.0f.
floatWDefault 0.0f.
floatHDefault 0.0f.

Constructors

SignatureNameDescription
ArcRect() = defaultArcRect
constexpr ArcRect(float x, float y, float w, float h) : X(x), Y(y), W(w), H(h)ArcRect

Public functions

ReturnsNameDescription
ArcRectFromMinMax
boolContains
boolContains
boolIntersects
ArcRectIntersection
ArcRectExpand
ArcRectExpand
ArcRectOffset
ArcVec2GetMin
ArcVec2GetMax
ArcVec2GetCenter
ArcVec2GetSize
ArcVec2GetTopLeft
ArcVec2GetTopRight
ArcVec2GetBottomLeft
ArcVec2GetBottomRight
boolIsEmpty
booloperator==
booloperator!=

Function details

ArcRect

C++
ArcRect() = default

ArcRect

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) const

Contains

C++
bool Contains(const ArcRect& other) const

Intersects

C++
bool Intersects(const ArcRect& other) const

Intersection

C++
ArcRect Intersection(const ArcRect& other) const

Expand

C++
ArcRect Expand(float amount) const

Expand

C++
ArcRect Expand(const ArcMargin& margin) const

Offset

C++
ArcRect Offset(const ArcVec2& delta) const

GetMin

C++
ArcVec2 GetMin() const

GetMax

C++
ArcVec2 GetMax() const

GetCenter

C++
ArcVec2 GetCenter() const

GetSize

C++
ArcVec2 GetSize() const

GetTopLeft

C++
ArcVec2 GetTopLeft() const

GetTopRight

C++
ArcVec2 GetTopRight() const

GetBottomLeft

C++
ArcVec2 GetBottomLeft() const

GetBottomRight

C++
ArcVec2 GetBottomRight() const

IsEmpty

C++
bool IsEmpty() const

operator==

C++
bool operator==(const ArcRect& other) const

operator!=

C++
bool operator!=(const ArcRect& other) const
Generated from Arc/Core/ArcGeometry.h via arc.json · Nov 5, 2026Version 1.0.0