#include <Sphere.h>
|
glm::vec3 | center = glm::vec3(0.0F, 0.0F, 0.0F) |
|
float | radius = 1.0F |
|
◆ Sphere() [1/2]
Creates uninitialized sphere.
◆ Sphere() [2/2]
ne::Sphere::Sphere |
( |
const glm::vec3 & |
center, |
|
|
float |
radius |
|
) |
| |
Initializes the sphere.
- Parameters
-
center | Location of the sphere's center point. |
radius | Sphere's radius. |
◆ isBehindPlane()
bool ne::Sphere::isBehindPlane |
( |
const Plane & |
plane | ) |
const |
Tells if the sphere is fully behind (inside the negative halfspace of) a plane.
- Parameters
-
- Returns
true
if the sphere is fully behind the plane, false
if intersects or in front of it.
◆ center
glm::vec3 ne::Sphere::center = glm::vec3(0.0F, 0.0F, 0.0F) |
Location of the sphere's center point.
◆ radius
float ne::Sphere::radius = 1.0F |
The documentation for this struct was generated from the following files:
- src/engine_lib/public/misc/shapes/Sphere.h
- src/engine_lib/private/misc/shapes/Sphere.cpp