|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Capsule in Dim-dimensional space. More...
#include <lib/geometry/include/ufo/geometry/capsule.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | Capsule () noexcept=default |
| Default constructor. | |
| constexpr | Capsule (Capsule const &) noexcept=default |
| Copy constructor. | |
| template<std::convertible_to< T > U> | |
| constexpr | Capsule (Capsule< Dim, U > const &other) noexcept |
| Converting constructor from a capsule with a different scalar type. | |
| constexpr | Capsule (Vec< Dim, T > const &start, Vec< Dim, T > const &end, T radius) noexcept |
| Constructs a capsule from two points and a radius. | |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| Returns the AABB of the capsule. | |
| constexpr Vec< Dim, T > | center () const noexcept |
| Returns the center of the capsule. | |
| constexpr T | diameter () const noexcept |
| Returns the diameter of the capsule. | |
| constexpr bool | isDegenerate () const noexcept |
| Returns whether the capsule is degenerate. | |
| constexpr T | length () const noexcept |
| Returns the length of the segment between start and end. | |
| bool | operator== (Capsule const &) const =default |
| Equality operator. | |
| constexpr T | volume () const noexcept |
| Returns the volume (or area/length) of the capsule. | |
Static Public Member Functions | |
| static constexpr std::size_t | dimension () noexcept |
| Returns the dimensionality of the capsule. | |
Public Attributes | |
| Vec< Dim, T > | end |
| The end point of the capsule segment. | |
| T | radius {} |
| The radius of the capsule. | |
| Vec< Dim, T > | start |
| The start point of the capsule segment. | |
Capsule in Dim-dimensional space.
| Dim | The dimensionality of the space (default: 3). |
| T | The numeric type (default: float), must be a floating-point type. |
Represents a capsule defined by a line segment between two points and a radius.
Definition at line 67 of file capsule.hpp.
| using ufo::Capsule< Dim, T >::value_type = T |
Definition at line 68 of file capsule.hpp.
|
inlineconstexprnoexcept |
Constructs a capsule from two points and a radius.
| [in] | start | The start point of the segment. |
| [in] | end | The end point of the segment. |
| [in] | radius | The radius of the capsule. |
Definition at line 96 of file capsule.hpp.
|
inlineexplicitconstexprnoexcept |
Converting constructor from a capsule with a different scalar type.
| U | The scalar type of the other capsule. |
| [in] | other | The other capsule. |
Definition at line 112 of file capsule.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns the diameter of the capsule.
Definition at line 159 of file capsule.hpp.
|
inlinestaticconstexprnoexcept |
Returns the dimensionality of the capsule.
Definition at line 123 of file capsule.hpp.
|
inlineconstexprnoexcept |
Returns whether the capsule is degenerate.
Definition at line 153 of file capsule.hpp.
|
inlineconstexprnoexcept |
Returns the length of the segment between start and end.
Definition at line 138 of file capsule.hpp.
|
inlineconstexprnoexcept |
Returns the volume (or area/length) of the capsule.
Definition at line 165 of file capsule.hpp.
| Vec<Dim, T> ufo::Capsule< Dim, T >::end |
The end point of the capsule segment.
Definition at line 78 of file capsule.hpp.
| T ufo::Capsule< Dim, T >::radius {} |
The radius of the capsule.
Definition at line 83 of file capsule.hpp.
| Vec<Dim, T> ufo::Capsule< Dim, T >::start |
The start point of the capsule segment.
Definition at line 73 of file capsule.hpp.