bounding_sphere_segment.hpp

Back to Bounding sphere

pastel/geometry/bounding/

#ifndef PASTELGEOMETRY_BOUNDING_SPHERE_SEGMENT_HPP
#define PASTELGEOMETRY_BOUNDING_SPHERE_SEGMENT_HPP

#include "pastel/geometry/bounding/bounding_sphere_segment.h"
#include "pastel/geometry/bounding/bounding_sphere_pointset.h"

namespace Pastel
{

    template <typename Real, integer N>
    Sphere<Real, N> boundingSphere(
        const Segment<Real, N>& segment)
    {
        return Pastel::boundingSphere(segment.start(), segment.end());
    }

}

#endif