Skip to content

API > @blocksuite/blocks > lineIntersects

Function: lineIntersects ​

lineIntersects( sp, ep, sp2, ep2, infinite = false): IVec | null

Parameters ​

ParameterTypeDefault value
spIVecundefined
epIVecundefined
sp2IVecundefined
ep2IVecundefined
infinitebooleanfalse

Returns ​

IVec | null

Defined In ​

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