|
Hymn to Beauty
C++ 3D Engine
|
A sphere. More...
#include <Sphere.hpp>
Public Member Functions | |
| Sphere (const glm::vec3 &origin, float radius) | |
| Create new sphere. More... | |
| bool | Intersects (const Frustum &frustum) const |
| Check interesection between the sphere and a frustum. More... | |
Public Attributes | |
| glm::vec3 | origin |
| Origin. More... | |
| float | radius |
| Radius. More... | |
A sphere.
Used for intersection testing.
| Sphere::Sphere | ( | const glm::vec3 & | origin, |
| float | radius | ||
| ) |
Create new sphere.
| origin | Origin. |
| radius | Radius. |
| bool Sphere::Intersects | ( | const Frustum & | frustum | ) | const |
Check interesection between the sphere and a frustum.
| frustum | The frustum to check intersection against. |
| glm::vec3 Video::Sphere::origin |
Origin.
| float Video::Sphere::radius |
Radius.