ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | Public Attributes | List of all members
AABB Struct Reference

Detailed Description

A 3D axis-aligned bounding box.

Public Member Functions

 AABB () = default
 
 AABB (const vec3 &min, const vec3 &max)
 
AABB toGlobal (const mat4 &transform) const
 

Public Attributes

vec3 min {}
 leftmost corner
 
vec3 max {}
 rightmost corner
 

Constructor & Destructor Documentation

AABB ( )
default

Creates an empty bounding box

AABB ( const vec3 &  min,
const vec3 &  max 
)
inline

Creates a bounding box

Member Function Documentation

AABB toGlobal ( const mat4 &  transform) const

Apply the given transform to the bounding box