|
Geometry : |
Subject: [geometry] boost::geometry::touches(point,box) does not compile
From: Brook Milligan (brook_at_[hidden])
Date: 2019-01-07 10:00:05
I am curious why the following code does not compile.
#include <boost/geometry/algorithms/touches.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
int main ()
{
using point_type = boost::geometry::model::d2::point_xy<int>;
using box_type = boost::geometry::model::box<point_type>;
point_type point { 0,0 };
box_type box { {0,0},{1,1} };
boost::geometry::touches(point,box);
}
It seems that touches() is not implemented for a point and a box, although it would seem to be simple to implement.
Cheers,
Brook
Geometry list run by mateusz at loskot.net