Skip to content

API > @blocksuite/blocks > rotatePoints

Function: rotatePoints ​

rotatePoints<T>( points, center, rotate): T[]

Type parameters ​

Parameter
T extends IVec

Parameters ​

ParameterType
pointsT[]
centerIVec
rotatenumber

Returns ​

T[]

Defined In ​

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