|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
A helper class which is used to generate a bounding sphere for a list of points. In most cases these are vertex positions of a mesh. More...
#include <BoundingSphere.h>
Static Public Member Functions | |
| static void | calculate (Ecs::BoundingSphere &sphere, const std::vector< glm::vec3 > &pointsToFit) |
| Calculates a bounding sphere for a list of points and fills the provided component. | |
A helper class which is used to generate a bounding sphere for a list of points. In most cases these are vertex positions of a mesh.
Definition at line 15 of file BoundingSphere.h.
|
static |
Calculates a bounding sphere for a list of points and fills the provided component.
| sphere | The Ecs component to fill |
| pointsToFit | The points to calculate the sphere from |
Definition at line 9 of file BoundingSphere.cpp.
References Ecs::BoundingSphere::center, Ecs::BoundingSphere::radius, and TRACY_ZONE_SCOPED_NAMED.