- intersection(p1, p2, p3, p4, projectionFrom?, projectionTo?, isInfine?): [number, number] | null
-
Parameters
-
p1: [number, number]
-
p2: [number, number]
-
p3: [number, number]
-
p4: [number, number]
-
projectionFrom: ((latlng) => [number, number]) = SphericalMercator.project
-
- (latlng): [number, number]
-
Returns [number, number]
-
projectionTo: ((point) => [number, number]) = SphericalMercator.unproject
-
- (point): [number, number]
-
Returns [number, number]
-
isInfine: boolean = false
Returns [number, number] | null
(默认线段求交)内含投影的线段求交函数(计算开销大)