bounding_sphere_box.h

Back to Bounding sphere

pastel/geometry/bounding/

// Description: Bounding sphere of a box

#ifndef PASTELGEOMETRY_BOUNDING_SPHERE_BOX_H
#define PASTELGEOMETRY_BOUNDING_SPHERE_BOX_H

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

namespace Pastel
{

    //! Finds the minimum volume bounding sphere of a box.

    template <typename Real, integer N>
    Sphere<Real, N> boundingSphere(
        const Box<Real, N>& box);

}

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

#endif