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;
109 b.add(s.center() + s.radius());
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 line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41
PointT & p0()
Returns the first endpoint of the segment.
Definition segment.h:81
PointT & p1()
Returns the second endpoint of the segment.
Definition segment.h:95
auto boundingBox(const PointType &p)
Compute the bounding box of a single point.
Definition bounding_box.h:59