![]() |
Pangolin
Header-only C++20 plane computational geometry library
|
Distance and Hausdorff-style measurements between shapes. More...
#include "implementation/intersection.hpp"#include "shape/convex.hpp"#include <algorithm>#include <cassert>#include <cmath>#include <cstddef>#include <ranges>Go to the source code of this file.
Namespaces | |
| namespace | pgl |
Macros | |
| #define | PGL_HPI_SQUARED_DISTANCE(ConceptName, ArgType) |
Distance and Hausdorff-style measurements between shapes.
Every squaredDistance / squaredHausdorffDistance overload is templated on a ResultNumber coordinate type that defaults to the calling shape's NumberType, mirroring the intersection API. Overloads whose closest point lies in a shape's interior divide by a squared length; with an integer ResultNumber that division truncates, so callers that need an accurate result must request a floating-point or pgl::Rational ResultNumber.
| #define PGL_HPI_SQUARED_DISTANCE | ( | ConceptName, | |
| ArgType ) |