23#ifndef VCL_ALGORITHMS_CORE_BOUNDING_BOX_H
24#define VCL_ALGORITHMS_CORE_BOUNDING_BOX_H
26#include <vclib/space/core.h>
58template<Po
intConcept Po
intType>
78template<SegmentConcept SegmentType>
81 using PointType = SegmentType::PointType;
103template<SphereConcept SphereType>
106 using ScalarType = SphereType::ScalarType;
127template<TriangleConcept TriangleType>
130 using PointType = TriangleType::PointType;
160template<IteratorConcept Iterator>
163 using BB =
decltype(
boundingBox(
typename Iterator::value_type()));
167 for (; begin != end; ++begin)
195 return boundingBox(std::ranges::begin(
r), std::ranges::end(
r));
A class representing a box in N-dimensional space.
Definition box.h:46
void add(const PointT &p)
Adds the given point to the current box, expanding this box in order to contain also the values of th...
Definition box.h:385
PointT center() const
Calculates the center point of the box.
Definition box.h:259
auto boundingBox(const PointType &p)
Compute the bounding box of a single point.
Definition bounding_box.h:59