Returns the nearest point on circle's perimeter closest to point.
circle
point
import { Circles } from 'https://unpkg.com/ixfx/dist/geometry.js'const pt = Circles.nearest(circle, {x:10,y:10}); Copy
import { Circles } from 'https://unpkg.com/ixfx/dist/geometry.js'const pt = Circles.nearest(circle, {x:10,y:10});
If an array of circles is provided, it will be the closest point amongst all the circles
Circle or array of circles
Point { x, y }
{ x, y }
Returns the nearest point on
circle
's perimeter closest topoint
.If an array of circles is provided, it will be the closest point amongst all the circles