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
7
namespace
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
}
ne::Plane
Definition:
Plane.h:8
ne::Sphere
Definition:
Sphere.h:9
ne::Sphere::center
glm::vec3 center
Definition:
Sphere.h:31
ne::Sphere::radius
float radius
Definition:
Sphere.h:34
ne::Sphere::isBehindPlane
bool isBehindPlane(const Plane &plane) const
Definition:
Sphere.cpp:10
ne::Sphere::Sphere
Sphere()=default
src
engine_lib
public
misc
shapes
Sphere.h
Generated by
1.9.5