distance metodu
Şöyle yaparız.
Şöyle yaparız.
typedef boost::geometry::model::point <float, 3, boost::geometry::cs::cartesian>
point;
typedef boost::geometry::model::segment <point> segment;
point pa = point(x1, y1, z1);
point pc = point(x2, y2, z2);
point pb = point(x3, y3, z3);
float dist = boost::geometry::distance(segment(pa, pb), segment(pa, pc));
Hiç yorum yok:
Yorum Gönder