StevEngine
StevEngine is a customizable C++ game engine.
Loading...
Searching...
No Matches
StevEngine::Utilities::Range3 Class Reference

Axis-aligned bounding box in 3D space. More...

#include <utilities/Range3.hpp>

Public Member Functions

 Range3 ()
 Create empty range at origin.
 
 Range3 (double lowX, double highX, double lowY, double highY, double lowZ, double highZ)
 Create range from component bounds.
 
 Range3 (const Vector3 &low, const Vector3 &high)
 Create range from min/max vectors.
 
Vector3 GetCenter () const
 Get center point of range.
 
Vector3 GetSize () const
 Get size of range.
 
 operator JPH::AABox () const
 Convert to Jolt AABB.
 
Range3operator= (const JPH::AABox &other)
 Assign from Jolt AABB.
 
 Range3 (const JPH::AABox &other)
 Create from Jolt AABB.
 

Public Attributes

Vector3 Low
 Minimum point (lower bounds)
 
Vector3 High
 Maximum point (upper bounds)
 

Detailed Description

Axis-aligned bounding box in 3D space.

Represents a box in 3D space defined by minimum and maximum points. Used for bounds checking and collision detection.

Constructor & Destructor Documentation

◆ Range3() [1/2]

StevEngine::Utilities::Range3::Range3 ( double lowX,
double highX,
double lowY,
double highY,
double lowZ,
double highZ )

Create range from component bounds.

Parameters
lowXMinimum X
highXMaximum X
lowYMinimum Y
highYMaximum Y
lowZMinimum Z
highZMaximum Z

◆ Range3() [2/2]

StevEngine::Utilities::Range3::Range3 ( const Vector3 & low,
const Vector3 & high )

Create range from min/max vectors.

Parameters
lowMinimum point
highMaximum point

Member Function Documentation

◆ GetCenter()

Vector3 StevEngine::Utilities::Range3::GetCenter ( ) const

Get center point of range.

Returns
Center position vector

◆ GetSize()

Vector3 StevEngine::Utilities::Range3::GetSize ( ) const

Get size of range.

Returns
Size vector

The documentation for this class was generated from the following files: