intersect_alignedbox_plane.h

Back to Intersection between shapes

pastel/geometry/intersect/

// Description: Intersection between an aligned box and a plane

#ifndef PASTELGEOMETRY_INTERSECT_ALIGNEDBOX_PLANE_H
#define PASTELGEOMETRY_INTERSECT_ALIGNEDBOX_PLANE_H

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

namespace Pastel
{

    template <typename Real, integer N>
    bool intersect(
        const AlignedBox<Real, N>& box,
        const Plane<Real, N>& plane, 
        integer& clipDimension,
        NoDeduction<Real>& minBoxMax,
        NoDeduction<Real>& maxBoxMin);

}

#include "pastel/geometry/intersect/intersect_alignedbox_plane.hpp"

#endif