UNPKG
@antv/path-util
Version:
latest (3.0.1)
3.0.1
3.0.1-alpha.0
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.3-beta.3
2.0.3-beta.2
2.0.3-beta.1
2.0.2
2.0.1
2.0.0
A common util collection for antv projects
github.com/antvis/util
antvis/util
@antv/path-util
/
lib
/
get-line-intersect.d.ts
15 lines
(14 loc)
•
269 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare
type
Point
= {
/** * x 值 *
@type
{
number
} */
x
:
number
;
/** * y 值 *
@type
{
number
} */
y
:
number
; };
export
default
function
getLineIntersect
(
p0
:
Point
,
p1
:
Point
,
p2
:
Point
,
p3
:
Point
):
Point
|
null
;
export
{};