Nameless Engine
Loading...
Searching...
No Matches
Sphere.h
1#pragma once
2
3// Custom.
4#include "math/GLMath.hpp"
5#include "misc/shapes/Plane.h"
6
7namespace ne {
9 struct Sphere {
11 Sphere() = default;
12
19 Sphere(const glm::vec3& center, float radius);
20
28 bool isBehindPlane(const Plane& plane) const;
29
31 glm::vec3 center = glm::vec3(0.0F, 0.0F, 0.0F);
32
34 float radius = 1.0F;
35 };
36}
Definition: Plane.h:8
Definition: Sphere.h:9
glm::vec3 center
Definition: Sphere.h:31
float radius
Definition: Sphere.h:34
bool isBehindPlane(const Plane &plane) const
Definition: Sphere.cpp:10
Sphere()=default