closest_point_in_cloud_xy
- compas.geometry.closest_point_in_cloud_xy(point, cloud)[source]
Calculates the closest point in a list of points in the XY-plane.
- Parameters
- Returns
float – The distance to the closest point.
[float, float, 0.0] – The XYZ coordinates of the closest point in the XY plane.
int – The index of the closest point in the cloud.
Notes
Check kdTree class for an optimized implementation (MR).