libdonut
2.3.2
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. More... | |
Public Attributes | |
Point< L, T > | center |
Position of the center of the sphere. More... | |
T | radius |
Radius of the sphere. More... | |
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.