Methods
findClosestPoint(sources, target)
Returns the closest source point to a target point
given an array of source points.
Parameters:
| Name | Type | Description |
|---|---|---|
sources |
An Array of source Points | |
target |
The target Point |
Returns:
Point The closest point from the points array