API > @blocksuite/blocks > lineIntersects
Function: lineIntersects ​
lineIntersects(
sp
,ep
,sp2
,ep2
,infinite
=false
):IVec
|null
Parameters ​
Parameter | Type | Default value |
---|---|---|
sp | IVec | undefined |
ep | IVec | undefined |
sp2 | IVec | undefined |
ep2 | IVec | undefined |
infinite | boolean | false |
Returns ​
IVec
| null
Defined In ​
packages/blocks/src/surface-block/utils/math-utils.ts:218