Toast Engine
Loading...
Searching...
No Matches
physics::AABB Struct Reference

Classes

struct  RayHit

Public Member Functions

auto overlaps (const AABB &other) const -> bool
auto contains (const AABB &other) const -> bool
auto expanded (float amount) const -> AABB
auto area () const -> float
auto intersectRay (const glm::vec3 &origin, const glm::vec3 &inv_dir) const -> std::optional< RayHit >

Public Attributes

glm::vec3 min {}
glm::vec3 max {}

The documentation for this struct was generated from the following files:
  • engine/src/toast/physics/aabb.hpp
  • engine/src/toast/physics/aabb_tree.cpp