Skip to content

API > @blocksuite/blocks > polygonPointDistance

Function: polygonPointDistance ​

polygonPointDistance(points, point): number

Parameters ​

ParameterType
pointsIVec[]
pointIVec

Returns ​

number

Defined In ​

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