Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BoundingSphere Class Reference

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.
 

Detailed Description

Represent the sphere of smallest radius containing a given object or region of space.

Constructor & Destructor Documentation

◆ BoundingSphere() [1/2]

BoundingSphere::BoundingSphere ( )
default

Empty sphere constructor.

◆ BoundingSphere() [2/2]

BoundingSphere::BoundingSphere ( const glm::vec3 &  aCenter,
float  aRadius 
)

Constructor

Parameters
aCenterthe center of the sphere
aRadiusthe radius of the sphere

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