Skip to content

Documentation / @geoverse/core-ol / perpendicularDistance

Function: perpendicularDistance()

ts
function perpendicularDistance(
   start, 
   center, 
   end): number;

Defined in: packages/core-ol/src/tools/trackThin.ts:31

点到线垂距。 注意:旧库 chuiju() 的化简公式有误(点积当叉积用,共线点会得到非零值), 此处修正为标准叉积公式;抽稀阈值(verticalThreshold/dpThreshold)的 业务调参基线可能需要随之微调。

Parameters

start

PixelCoord

center

PixelCoord

end

PixelCoord

Returns

number