Giriş
Şu satırı dahil ederiz.
Şöyle yaparız.
Şu satırı dahil ederiz.
#include <boost/geometry.hpp>
ÖrnekŞöyle yaparız.
typedef double base_type;
typedef bgm::d2::point_xy<base_type> point_type;
typedef bgm::polygon<point_type> polygon_type;
std::vector<point_type> points {
{7.99922500000000127329e+02, 1.04990090625000011642e+04},
{7.99922500000000013642e+02, 9.99905624999999963620e+03},
{3.99961250000000006821e+02, 9.99905624999999963620e+03},
{3.99961250000000006821e+02, 1.04990090625000011642e+04},
{7.99922500000000127329e+02, 1.04990090625000011642e+04},
};
polygon_type poly;
bg::assign_points(poly, points);
Hiç yorum yok:
Yorum Gönder