|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Generic capsule shape with a center line segment and radius in N-dimensional space. More...
#include <GREM/core/geometry.hpp>
Public Types | |
| using | Component = T |
| Scalar coordinate component type. | |
Public Member Functions | |
| template<typename U> | |
| GREM_ALWAYS_INLINE constexpr | operator Capsule< N, U > () const noexcept |
| Convert this capsule to an equivalent capsule of another scalar type. | |
| bool | operator== (const Capsule &other) const =default |
| Compare this capsule to another for equality. | |
| constexpr bool | contains (const Point< N, T > &point) const noexcept |
| Check if a given point is contained within the extents of this capsule. | |
| constexpr Box< N, T > | getBoundingBox () const noexcept |
| Get the axis-aligned bounding box of the capsule. | |
Public Attributes | |
| LineSegment< N, T > | centerLine |
| Center line of the capsule. | |
| T | radius |
| Radius of the capsule from the center line. | |
Static Public Attributes | |
| static constexpr size_t | RANK = N |
| Number of dimensions of the vector space. | |
Generic capsule shape with a center line segment and radius in N-dimensional space.
| N | number of vector dimensions. |
| T | scalar coordinate component type. |
| using grem::Capsule< N, T >::Component = T |
Scalar coordinate component type.
|
inlineexplicitconstexprnoexcept |
Convert this capsule to an equivalent capsule of another scalar type.
|
nodiscarddefault |
Compare this capsule to another for equality.
| other | the capsule to compare this capsule to. |
|
nodiscardconstexprnoexcept |
Check if a given point is contained within the extents of this capsule.
| point | point to check. |
|
inlinenodiscardconstexprnoexcept |
Get the axis-aligned bounding box of the capsule.
|
staticconstexpr |
Number of dimensions of the vector space.
| LineSegment<N, T> grem::Capsule< N, T >::centerLine |
Center line of the capsule.
| T grem::Capsule< N, T >::radius |
Radius of the capsule from the center line.