libdonut
2.3.2
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. More... | |
Public Attributes | |
LineSegment< L, T > | centerLine |
Center line of the capsule. More... | |
T | radius |
Radius of the capsule from the center line. More... | |
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.