Rendu
A lightweight rendering engine for experimentations
|
Represent the sphere of smallest radius containing a given object or region of space. More...
#include <Bounds.hpp>
Public Member Functions | |
BoundingSphere ()=default | |
BoundingSphere (const glm::vec3 &aCenter, float aRadius) | |
Public Attributes | |
glm::vec3 | center = glm::vec3(0.0f) |
The sphere center. | |
float | radius = 0.0f |
The sphere radius. | |
Represent the sphere of smallest radius containing a given object or region of space.
|
default |
Empty sphere constructor.
BoundingSphere::BoundingSphere | ( | const glm::vec3 & | aCenter, |
float | aRadius | ||
) |
Constructor
aCenter | the center of the sphere |
aRadius | the radius of the sphere |