Hi,
I try boost::geometry::intersects algorithm(1 arg version) in Boost 1.47.0.
Follow program result is "false". but, I hope result is "true".
Is this Boost.Geometry bug?
#include <iostream>
#include
#include
namespace bg = boost::geometry;
int main()
{
typedef bg::model::d2::point_xy<double> point;
const bg::model::linestring<point> line = boost::assign::list_of<point>
// (0, 0) // result become "true" when comment-in
(0, 4)
(4, 4)
(2, 2)
(2, 5)
;
const bool result = bg::intersects(line);
std::cout << std::boolalpha << result << std::endl;
}
Regards,
========================
Akira Takahashi
mailto:faithandbrave@gmail.com
blog: http://d.hatena.ne.jp/faith_and_brave/