bounding_sphere_segment.h

Back to Bounding sphere

pastel/geometry/bounding/

// Description: Bounding sphere of a line segment

#ifndef PASTELGEOMETRY_BOUNDING_SPHERE_SEGMENT_H
#define PASTELGEOMETRY_BOUNDING_SPHERE_SEGMENT_H

#include "pastel/geometry/shape/sphere.h"
#include "pastel/geometry/shape/segment.h"

namespace Pastel
{

    //! Finds the minimum volume bounding sphere of a line segment.

    template <typename Real, integer N>
    Sphere<Real, N> boundingSphere(
        const Segment<Real, N>& segment);

}

#include "pastel/geometry/bounding/bounding_sphere_segment.hpp"

#endif