Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Maximal distance of a set of points to another point

Subject: CGAL users discussion list

List archive

[cgal-discuss] Maximal distance of a set of points to another point


Chronological Thread 
  • From: Cedric Doucet <>
  • To:
  • Subject: [cgal-discuss] Maximal distance of a set of points to another point
  • Date: Wed, 12 Feb 2014 16:56:20 +0100 (CET)


Hello,

I would like to know the fastest way to compute the maximum (squared)
distance of a set of points to another point P in CGAL.

I may iterate on each point Q and compute the (squared) distance between P
and Q but I guess there is a better way to do this.

Points are instances of Point_2< Cartesian<double> >.
My goal is only to check if the maximum distance between P and the set of
nodes is below some threshold.

Thank you very much for you help!

Best regards,

Cédric Doucet




Archive powered by MHonArc 2.6.18.

Top of Page