Toast Engine
Loading...
Searching...
No Matches
volume_bounds.hpp File Reference
#include "voxel_constants.hpp"
#include <algorithm>
#include <cmath>
#include <glm/glm.hpp>
Include dependency graph for volume_bounds.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

auto voxel::localExtent (glm::uvec3 brick_dims) noexcept -> glm::vec3
auto voxel::worldBoundingSphere (const glm::mat4 &model, glm::uvec3 brick_dims) -> glm::vec4
auto voxel::containsPoint (const glm::mat4 &inverse_model, glm::uvec3 brick_dims, glm::vec3 world_point, float margin=0.0f) -> bool
 Pass the near plane distance as margin.

Detailed Description

Author
dario
Date
13/09/2026

Function Documentation

◆ worldBoundingSphere()

auto voxel::worldBoundingSphere ( const glm::mat4 & model,
glm::uvec3 brick_dims ) -> glm::vec4
inlinenodiscard
Returns
centre in xyz and radius in w