|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Cylinder in Dim-dimensional space. More...
#include <lib/geometry/include/ufo/geometry/cylinder.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | Cylinder () noexcept=default |
| Default constructor. | |
| constexpr | Cylinder (Cylinder const &) noexcept=default |
| Copy constructor. | |
| template<std::convertible_to< T > U> | |
| constexpr | Cylinder (Cylinder< Dim, U > const &other) noexcept |
| Converting constructor from a cylinder with a different scalar type. | |
| constexpr | Cylinder (Vec< Dim, T > start, Vec< Dim, T > end, T radius) noexcept |
| Constructs a cylinder from two cap centers and a radius. | |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| Returns the AABB of the cylinder. | |
| constexpr Vec< Dim, T > | at (T t) const noexcept |
| Returns the point at parameter t along the cylinder axis. | |
| constexpr Vec< Dim, T > | center () const noexcept |
| Returns the center of the cylinder. | |
| constexpr T | diameter () const noexcept |
| Returns the diameter of the cylinder. | |
| constexpr bool | isDegenerate () const noexcept |
| Returns whether the cylinder is degenerate. | |
| constexpr T | length () const noexcept |
| Returns the height (length) of the cylinder. | |
| bool | operator== (Cylinder const &) const =default |
| Equality operator. | |
| constexpr T | volume () const noexcept |
| Returns the volume (or area/length) of the cylinder. | |
Static Public Member Functions | |
| static constexpr std::size_t | dimension () noexcept |
| Returns the dimensionality of the cylinder. | |
Public Attributes | |
| Vec< Dim, T > | end |
| The end point of the second cap of the cylinder. | |
| T | radius {} |
| The radius of the cylinder. | |
| Vec< Dim, T > | start |
| The center of the first cap of the cylinder. | |
Cylinder 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 cylinder defined by two center points (caps) and a radius.
Definition at line 67 of file cylinder.hpp.
| using ufo::Cylinder< Dim, T >::value_type = T |
Definition at line 68 of file cylinder.hpp.
|
inlineconstexprnoexcept |
Constructs a cylinder from two cap centers and a radius.
| [in] | center_1 | The center of the first cap. |
| [in] | center_2 | The center of the second cap. |
| [in] | radius | The radius. |
Definition at line 96 of file cylinder.hpp.
|
inlineexplicitconstexprnoexcept |
Converting constructor from a cylinder with a different scalar type.
| U | The scalar type of the other cylinder. |
| [in] | other | The other cylinder. |
Definition at line 112 of file cylinder.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns the point at parameter t along the cylinder axis.
| [in] | t | The parameter [0..1]. |
Definition at line 148 of file cylinder.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns the diameter of the cylinder.
Definition at line 138 of file cylinder.hpp.
|
inlinestaticconstexprnoexcept |
Returns the dimensionality of the cylinder.
Definition at line 123 of file cylinder.hpp.
|
inlineconstexprnoexcept |
Returns whether the cylinder is degenerate.
Definition at line 185 of file cylinder.hpp.
|
inlineconstexprnoexcept |
Returns the height (length) of the cylinder.
Definition at line 157 of file cylinder.hpp.
|
default |
Equality operator.
| [in] | other | The other cylinder. |
| true | if the cylinders are equal |
| false | otherwise |
|
inlineconstexprnoexcept |
Returns the volume (or area/length) of the cylinder.
Definition at line 191 of file cylinder.hpp.
| Vec<Dim, T> ufo::Cylinder< Dim, T >::end |
The end point of the second cap of the cylinder.
Definition at line 78 of file cylinder.hpp.
| T ufo::Cylinder< Dim, T >::radius {} |
The radius of the cylinder.
Definition at line 83 of file cylinder.hpp.
| Vec<Dim, T> ufo::Cylinder< Dim, T >::start |
The center of the first cap of the cylinder.
Definition at line 73 of file cylinder.hpp.