|
libdonut 2.3.6
Application framework for cross-platform game development in C++20
|
Generic sphere shape with a center and radius. More...
#include <donut/shapes.hpp>
Public Member Functions | |
| constexpr bool | contains (const Point< L, T > &point) const noexcept |
| Check if a given point is contained within the extents of this sphere. | |
Public Attributes | |
| Point< L, T > | center |
| Position of the center of the sphere. | |
| T | radius |
| Radius of the sphere. | |
Generic sphere shape with a center and radius.
| L | number of vector dimensions. |
| T | component type for vector coordinates. |
|
constexprnoexcept |
Check if a given point is contained within the extents of this sphere.
| Point<L, T> donut::Sphere< L, T >::center |
Position of the center of the sphere.
| T donut::Sphere< L, T >::radius |
Radius of the sphere.