struct
FBox
- Module
- Math
- Header
#include "Math/FBox.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
Vec3 Min, | Max | |
bool | IsValid | false sentinel — Add* sets to true Default false. |
Constructors
| Signature | Name | Description |
|---|---|---|
FBox() = default | FBox | Not constexpr: Min/Max are deliberately uninitialized (the IsValid sentinel covers them), and a defaulted constexpr ctor with uninitialized members is ill-formed before C++23 (MSVC is lax). |
constexpr FBox(const Vec3& mn, const Vec3& mx) : Min(mn), Max(mx), IsValid(true) | FBox | Range ctor. |
Public functions
| Returns | Name | Description |
|---|---|---|
FBox | Empty | Empty/invalid factory — start of an aggregate += chain. |
FBox& | operator+= | Expand to include a point. |
FBox& | operator+= | Union with another box. |
Vec3 | GetCenter | |
Vec3 | GetExtent | |
Vec3 | GetSize | |
bool | Contains | |
bool | Intersects |
Function details
FBox
C++
FBox() = defaultNot constexpr: Min/Max are deliberately uninitialized (the IsValid sentinel covers them), and a defaulted constexpr ctor with uninitialized members is ill-formed before C++23 (MSVC is lax).
FBox
C++
constexpr FBox(const Vec3& mn, const Vec3& mx) : Min(mn), Max(mx), IsValid(true)Range ctor. Caller is responsible for Min ≤ Max element-wise.
Empty
C++
static FBox Empty() noexceptEmpty/invalid factory — start of an aggregate += chain.
operator+=
C++
FBox& operator+=(const Vec3& p) noexceptExpand to include a point. First add flips IsValid.
operator+=
C++
FBox& operator+=(const FBox& o) noexceptUnion with another box.
GetCenter
C++
Vec3 GetCenter() const noexceptGetExtent
C++
Vec3 GetExtent() const noexceptGetSize
C++
Vec3 GetSize() const noexceptContains
C++
bool Contains(const Vec3& p) const noexceptIntersects
C++
bool Intersects(const FBox& o) const noexceptGenerated from Math/FBox.h via math.json · Nov 4, 2026Version 1.0.0