contains_sphere_alignedbox.h

Back to Containment testing

pastel/geometry/containment/

// Description: Does a sphere contain an aligned box?

#ifndef PASTELGEOMETRY_CONTAINS_SPHERE_ALIGNEDBOX_H
#define PASTELGEOMETRY_CONTAINS_SPHERE_ALIGNEDBOX_H

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

namespace Pastel
{

    //! Finds out if an aligned box is contained in a sphere.
    template <typename Real, integer N>
    bool contains(
        const Sphere<Real, N>& outerSphere,
        const AlignedBox<Real, N>& innerBox);

}

#include "pastel/geometry/containment/contains_sphere_alignedbox.hpp"

#endif