UFO 1.0.0
An Efficient Probabilistic 3D Mapping Framework That Embraces the Unknown
Loading...
Searching...
No Matches
fun.hpp
1
42#ifndef UFO_GEOMETRY_FUN_HPP
43#define UFO_GEOMETRY_FUN_HPP
44
45// UFO
46#include <ufo/geometry/detail/fun.hpp>
47
48namespace ufo
49{
57template <class Geometry>
58[[nodiscard]] constexpr Vec<Geometry::dimension(), typename Geometry::value_type> min(
59 Geometry const& g)
60{
61 return detail::min(g);
62}
63
71template <class Geometry>
72[[nodiscard]] constexpr Vec<Geometry::dimension(), typename Geometry::value_type> max(
73 Geometry const& g)
74{
75 return detail::max(g);
76}
77
85template <class Geometry>
86[[nodiscard]] constexpr auto corners(Geometry const& g)
87{
88 return detail::corners(g);
89}
90} // namespace ufo
91
92#endif // UFO_GEOMETRY_FUN_HPP
All vision-related classes and functions.
Definition cloud.hpp:49
constexpr Vec< Geometry::dimension(), typename Geometry::value_type > max(Geometry const &g)
Returns the maximum coordinate of the minimum spanning axis-aligned bounding box of a geometry.
Definition fun.hpp:72
constexpr Vec< Geometry::dimension(), typename Geometry::value_type > min(Geometry const &g)
Returns the minimum coordinate of the minimum spanning axis-aligned bounding box of a geometry.
Definition fun.hpp:58
constexpr auto corners(Geometry const &g)
Returns the corners of the minimum spanning axis-aligned bounding box of a geometry.
Definition fun.hpp:86
A fixed-size arithmetic vector of up to 4 dimensions.
Definition vec.hpp:76