|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Ellipsoid in Dim-dimensional space. More...
#include <lib/geometry/include/ufo/geometry/ellipsoid.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | Ellipsoid () noexcept=default |
| Default constructor. | |
| constexpr | Ellipsoid (Ellipsoid const &) noexcept=default |
| Copy constructor. | |
| template<std::convertible_to< T > U> | |
| constexpr | Ellipsoid (Ellipsoid< Dim, U > const &other) noexcept |
| Converting constructor from an ellipsoid with a different scalar type. | |
| constexpr | Ellipsoid (Vec< Dim, T > center, Vec< Dim, T > radii) noexcept |
| Constructs an ellipsoid from a center and radii. | |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| Returns the AABB of the ellipsoid. | |
| constexpr Vec< Dim, T > const & | center () const noexcept |
| Returns the center of the ellipsoid. | |
| constexpr Vec< Dim, T > & | center () noexcept |
| Returns the center of the ellipsoid. | |
| constexpr T | diameter () const noexcept |
| Returns the diameter of the ellipsoid. | |
| constexpr bool | isDegenerate () const noexcept |
| Returns whether the ellipsoid is degenerate. | |
| constexpr Vec< Dim, T > | max () const noexcept |
| Returns the maximum point of the ellipsoid's AABB. | |
| constexpr Vec< Dim, T > | min () const noexcept |
| Returns the minimum point of the ellipsoid's AABB. | |
| bool | operator== (Ellipsoid const &) const =default |
| Equality operator. | |
| constexpr T | volume () const noexcept |
| Returns the volume of the ellipsoid. | |
Static Public Member Functions | |
| static constexpr std::size_t | dimension () noexcept |
| Returns the dimensionality of the ellipsoid. | |
Public Attributes | |
| Vec< Dim, T > | center_ |
| The center of the ellipsoid. | |
| Vec< Dim, T > | radii |
| The radii of the ellipsoid along each axis. | |
Ellipsoid 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 an ellipsoid defined by a center point and radii along each axis.
Definition at line 67 of file ellipsoid.hpp.
| using ufo::Ellipsoid< Dim, T >::value_type = T |
Definition at line 68 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Constructs an ellipsoid from a center and radii.
| [in] | center | The center point. |
| [in] | radii | The radii along each axis. |
Definition at line 90 of file ellipsoid.hpp.
|
inlineexplicitconstexprnoexcept |
Converting constructor from an ellipsoid with a different scalar type.
| U | The scalar type of the other ellipsoid. |
| [in] | other | The other ellipsoid. |
Definition at line 106 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Returns the center of the ellipsoid.
Definition at line 121 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Returns the center of the ellipsoid.
Definition at line 115 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Returns the diameter of the ellipsoid.
Definition at line 163 of file ellipsoid.hpp.
|
inlinestaticconstexprnoexcept |
Returns the dimensionality of the ellipsoid.
Definition at line 127 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Returns whether the ellipsoid is degenerate.
Definition at line 154 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Returns the maximum point of the ellipsoid's AABB.
Definition at line 139 of file ellipsoid.hpp.
|
inlineconstexprnoexcept |
Returns the minimum point of the ellipsoid's AABB.
Definition at line 133 of file ellipsoid.hpp.
|
default |
Equality operator.
| [in] | other | The other ellipsoid. |
| true | if the ellipsoids are equal |
| false | otherwise |
|
inlineconstexprnoexcept |
Returns the volume of the ellipsoid.
Definition at line 169 of file ellipsoid.hpp.
| Vec<Dim, T> ufo::Ellipsoid< Dim, T >::center_ |
The center of the ellipsoid.
Definition at line 73 of file ellipsoid.hpp.
| Vec<Dim, T> ufo::Ellipsoid< Dim, T >::radii |
The radii of the ellipsoid along each axis.
Definition at line 78 of file ellipsoid.hpp.