|
UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
|
Line segment in Dim-dimensional space. More...
#include <lib/geometry/include/ufo/geometry/line_segment.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | LineSegment () noexcept=default |
| Default constructor. | |
| constexpr | LineSegment (LineSegment const &) noexcept=default |
| Copy constructor. | |
| template<std::convertible_to< T > U> | |
| constexpr | LineSegment (LineSegment< Dim, U > const &other) noexcept |
| Converting constructor from a line segment with a different scalar type. | |
| constexpr | LineSegment (Vec< Dim, T > const &start, Vec< Dim, T > const &end) noexcept |
| Constructs a line segment from a start and an end point. | |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| Returns the AABB of the line segment. | |
| constexpr Vec< Dim, T > | at (T t) const noexcept |
| Returns the point at parameter t along the line segment. | |
| constexpr Vec< Dim, T > | center () const noexcept |
| Returns the center of the line segment. | |
| constexpr T | diameter () const noexcept |
| Returns the diameter of the line segment. | |
| constexpr bool | isDegenerate (T eps=std::numeric_limits< T >::epsilon()) const noexcept |
| Returns whether the line segment is degenerate. | |
| constexpr T | length () const noexcept |
| Returns the length of the line segment. | |
| bool | operator== (LineSegment const &) const =default |
| Equality operator. | |
| constexpr T | volume () const noexcept |
| Returns the volume of the line segment. | |
Static Public Member Functions | |
| static constexpr std::size_t | dimension () noexcept |
| Returns the dimensionality of the line segment. | |
Public Attributes | |
| Vec< Dim, T > | end |
| The end point of the line segment. | |
| Vec< Dim, T > | start |
| The start point of the line segment. | |
Line segment in Dim-dimensional space.
Represents a line segment defined by a start and an end point.
| Dim | The dimensionality of the space (default: 3). |
| T | The numeric type (default: float), must be a floating-point type. |
Definition at line 68 of file line_segment.hpp.
| using ufo::LineSegment< Dim, T >::value_type = T |
Definition at line 69 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Constructs a line segment from a start and an end point.
| [in] | start | The start point. |
| [in] | end | The end point. |
Definition at line 92 of file line_segment.hpp.
|
inlineexplicitconstexprnoexcept |
Converting constructor from a line segment with a different scalar type.
| U | The scalar type of the other segment. |
| [in] | other | The other segment. |
Definition at line 109 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the AABB of the line segment.
Definition at line 168 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the point at parameter t along the line segment.
| [in] | t | The parameter [0..1]. |
Definition at line 133 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the center of the line segment.
Definition at line 142 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the diameter of the line segment.
Definition at line 151 of file line_segment.hpp.
|
inlinestaticconstexprnoexcept |
Returns the dimensionality of the line segment.
Definition at line 118 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns whether the line segment is degenerate.
| [in] | eps | The epsilon value for the check. |
Definition at line 158 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the length of the line segment.
Definition at line 125 of file line_segment.hpp.
|
inlineconstexprnoexcept |
Returns the volume of the line segment.
Definition at line 177 of file line_segment.hpp.
| Vec<Dim, T> ufo::LineSegment< Dim, T >::end |
The end point of the line segment.
Definition at line 79 of file line_segment.hpp.
| Vec<Dim, T> ufo::LineSegment< Dim, T >::start |
The start point of the line segment.
Definition at line 74 of file line_segment.hpp.