Hymn to Beauty
C++ 3D Engine
Sphere.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace Video {
6class Frustum;
7
9
12class Sphere {
13 public:
15
19 Sphere(const glm::vec3& origin, float radius);
20
22
26 bool Intersects(const Frustum& frustum) const;
27
29 glm::vec3 origin;
30
32 float radius;
33};
34} // namespace Video
A viewing frustum.
Definition: Frustum.hpp:13
A sphere.
Definition: Sphere.hpp:12
bool Intersects(const Frustum &frustum) const
Check interesection between the sphere and a frustum.
Definition: Sphere.cpp:12
glm::vec3 origin
Origin.
Definition: Sphere.hpp:29
float radius
Radius.
Definition: Sphere.hpp:32
Sphere(const glm::vec3 &origin, float radius)
Create new sphere.
Definition: Sphere.cpp:7
Definition: Editor.hpp:18