Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Math::BoundingSphere Class Reference

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.

Detailed Description

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.

Member Function Documentation

◆ calculate()

void Math::BoundingSphere::calculate ( Ecs::BoundingSphere & sphere,
const std::vector< glm::vec3 > & pointsToFit )
static

Calculates a bounding sphere for a list of points and fills the provided component.

Parameters
sphereThe Ecs component to fill
pointsToFitThe 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.


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