intersect_flat_plane.h

Back to Intersection between shapes

pastel/geometry/intersect/

// Description: Intersection between a 2-flat and a plane

#ifndef PASTELGEOMETRY_INTERSECT_FLAT_PLANE_H
#define PASTELGEOMETRY_INTERSECT_FLAT_PLANE_H

#include "pastel/geometry/shape/flat.h"
#include "pastel/geometry/shape/plane.h"
#include "pastel/geometry/shape/line.h"

namespace Pastel
{

    //! Finds the intersection between a 2-flat and a hyperplane.

    template <typename Real, integer N>
    bool intersect(
        const Flat<Real, N, 2>& aPlane,
        const Plane<Real, N>& bPlane,
        Line<Real, N>& line);

}

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

#endif