FindClosestPoints


For each given point, finds the closest point among the given point set.

Syntax

C++
Python
 
def FindClosestPoints(
	inPointSet: list[Point2D],
	inQueries: list[Point2D],
	/
)
-> (
	outPoints: list[Point2D],
	outIndices: list[int]
)

Parameters

Name Type Default Description
Input value inPointSet list[Point2D] Points that will be searched.
Input value inQueries list[Point2D]
Output value outPoints list[Point2D] For each point in inQueries, the closest point value from inPointSet.
Output value outIndices list[int] For each point in inQueries, the closest point index of inPointSet.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.