overlaps_box_triangle.h

Back to Overlap testing

pastel/geometry/overlap/

// Description: Overlap tests between a box and a triangle

#ifndef PASTELGEOMETRY_OVERLAPS_BOX_TRIANGLE_H
#define PASTELGEOMETRY_OVERLAPS_BOX_TRIANGLE_H

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

namespace Pastel
{

    //! Tests if an box and a triangle overlap.
    template <typename Real, integer N>
    bool overlaps(
        const Box<Real, N>& box,
        const PASTEL_TRIANGLE(Real, N)& triangle);

}

#include "pastel/geometry/overlap/overlaps_box_triangle.hpp"

#endif