struct
bounding_boxAn axis-aligned bounding box.
Public types
- using scalar_type = float
- The scalar type used for bounding boxes.
-
using vector_type = vector<scalar_
type, 3> - The 3D vector type used for bounding boxes.
Constructors, destructors, conversion operators
- bounding_box() defaulted noexcept
- Default constructor. Does not initialize the bounding box.
-
bounding_box(const bounding_
box&) defaulted constexpr noexcept - Copy constructor.
-
bounding_box(vector_
type center_, vector_ type extents_) constexpr noexcept - Constructs a bounding box from a center point and extents (half-lengths).
-
bounding_box(scalar_
type center_x, scalar_ type center_y, scalar_ type center_z, scalar_ type extents_x, scalar_ type extents_y, scalar_ type extents_z) constexpr noexcept - Constructs a bounding box from a center point and extents (half-lengths) as scalar values.
- operator bool() const explicit constexpr noexcept
- Returns true if any of the bounding box's scalar components are non-zero.
Public functions
-
auto max_corner() const -> vector_
type constexpr noexcept - Returns the 'max' corner of the bounding box.
-
auto min_corner() const -> vector_
type constexpr noexcept - Returns the 'min' corner of the bounding box.
-
auto operator=(const bounding_
box&) -> bounding_ box& defaulted noexcept - Copy-assignment operator.
Public variables
-
vector_
type center - The box's center position.
-
vector_
type extents - The extents (half-lengths) of the box on each axis.
Compatibility with UE4
- bounding_box(const ::FBox& box) noexcept
- Constructs a bounding box from a UE4 FBox.
- operator::FBox() const noexcept
- Converts a bounding box into a UE4 FBox.
Function documentation
stim:: bounding_box:: bounding_box(const ::FBox& box) noexcept
Constructs a bounding box from a UE4 FBox.
stim:: bounding_box:: operator::FBox() const noexcept
Converts a bounding box into a UE4 FBox.