42#ifndef UFO_GEOMETRY_DISTANCE_HPP
43#define UFO_GEOMETRY_DISTANCE_HPP
46#include <ufo/geometry/detail/distance.hpp>
60template <
class A,
class B>
61[[nodiscard]]
constexpr auto distance(A
const&
a, B
const&
b)
63 return detail::distance(
a,
b);
79template <
class A,
class B>
82 return detail::distanceSquared(
a,
b);
All vision-related classes and functions.
constexpr T b(Lab< T, Flags > color) noexcept
Returns the un-weighted blue–yellow axis value.
constexpr T a(Lab< T, Flags > color) noexcept
Returns the un-weighted green–red axis value.
constexpr auto distanceSquared(A const &a, B const &b)
Computes the minimum squared distance between two shapes.
constexpr auto distance(A const &a, B const &b)
Computes the minimum distance between two shapes.