overlaps_segments.h

Back to Overlap testing

pastel/geometry/overlap/

// Description: Intersection in a line segment set

#ifndef PASTELGEOMETRY_OVERLAPS_SEGMENTS_H
#define PASTELGEOMETRY_OVERLAPS_SEGMENTS_H

#include "pastel/sys/mytypes.h"
#include "pastel/sys/vector.h"

namespace Pastel
{

    //! Tests whether there is an intersection in a line segment set.
    /*!
   Segments sharing a vertex will never intersect.
   */

    template <typename Real>
    bool overlaps(
        const std::vector<Vector<Real, 2> >& vertex,
        const std::vector<Integer2>& segment);

}

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

#endif