struct

FBox

Module
Math
Header
#include "Math/FBox.h"
Namespace
Mowo

Properties

TypeNameDescription
Vec3 Min,Max
boolIsValidfalse sentinel — Add* sets to true Default false.

Constructors

SignatureNameDescription
FBox() = defaultFBoxNot 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)FBoxRange ctor.

Public functions

ReturnsNameDescription
FBoxEmptyEmpty/invalid factory — start of an aggregate += chain.
FBox&operator+=Expand to include a point.
FBox&operator+=Union with another box.
Vec3GetCenter
Vec3GetExtent
Vec3GetSize
boolContains
boolIntersects

Function details

FBox

C++
FBox() = default

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

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() noexcept

Empty/invalid factory — start of an aggregate += chain.

operator+=

C++
FBox& operator+=(const Vec3& p) noexcept

Expand to include a point. First add flips IsValid.

operator+=

C++
FBox& operator+=(const FBox& o) noexcept

Union with another box.

GetCenter

C++
Vec3 GetCenter() const noexcept

GetExtent

C++
Vec3 GetExtent() const noexcept

GetSize

C++
Vec3 GetSize() const noexcept

Contains

C++
bool Contains(const Vec3& p) const noexcept

Intersects

C++
bool Intersects(const FBox& o) const noexcept
Generated from Math/FBox.h via math.json · Nov 4, 2026Version 1.0.0