Skip to content

API > @blocksuite/blocks > polygonNearestPoint

Function: polygonNearestPoint ​

polygonNearestPoint(points, point): IVec

Parameters ​

ParameterType
pointsIVec[]
pointIVec

Returns ​

IVec

Defined In ​

packages/blocks/src/surface-block/utils/math-utils.ts:320