|
libdonut 2.3.6
Application framework for cross-platform game development in C++20
|
Generic capsule shape with a center line segment 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 capsule. | |
Public Attributes | |
| LineSegment< L, T > | centerLine |
| Center line of the capsule. | |
| T | radius |
| Radius of the capsule from the center line. | |
Generic capsule shape with a center line segment 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 capsule.
| LineSegment<L, T> donut::Capsule< L, T >::centerLine |
Center line of the capsule.
| T donut::Capsule< L, T >::radius |
Radius of the capsule from the center line.