Antkeeper
0.0.1
|
n-dimensional capsule. More...
#include <hypercapsule.hpp>
Public Types | |
using | vector_type = math::vector< T, N > |
Vector type. More... | |
using | segment_type = geom::line_segment< T, N > |
Line segment type. More... | |
Public Member Functions | |
constexpr bool | contains (const vector_type &point) const noexcept |
Tests whether a point is contained within this hypercapsule. More... | |
T | distance (const vector_type &point) const noexcept |
Calculates the signed distance from the hypercapsule to a point. More... | |
Public Attributes | |
segment_type | segment |
Medial line segment. More... | |
T | radius |
Radius of the hemi-hyperspheres. More... | |
n-dimensional capsule.
T | Real type. |
N | Number of dimensions. |
Definition at line 36 of file hypercapsule.hpp.
using geom::primitives::hypercapsule< T, N >::segment_type = geom::line_segment<T, N> |
Line segment type.
Definition at line 42 of file hypercapsule.hpp.
using geom::primitives::hypercapsule< T, N >::vector_type = math::vector<T, N> |
Vector type.
Definition at line 39 of file hypercapsule.hpp.
|
inlineconstexprnoexcept |
Tests whether a point is contained within this hypercapsule.
point | Point to test for containment. |
true
if the point is contained within this hypercapsule, false
otherwise. Definition at line 57 of file hypercapsule.hpp.
|
inlinenoexcept |
Calculates the signed distance from the hypercapsule to a point.
point | Input point. |
point
. Definition at line 69 of file hypercapsule.hpp.
T geom::primitives::hypercapsule< T, N >::radius |
Radius of the hemi-hyperspheres.
Definition at line 48 of file hypercapsule.hpp.
segment_type geom::primitives::hypercapsule< T, N >::segment |
Medial line segment.
Definition at line 45 of file hypercapsule.hpp.