Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 506 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 506 Bytes

es6模块

主函数在 pathPoints/connection-straight.js 中

参数 example

{
    entryPoint = [0, 0], 
    entryDirection = [0, 1], 
    entryExt = 10, 
    exitPoint = [10, 10], 
    exitDirection = [1, 0], 
    exitExt = 10
},
turnRatio=0.5

entryPoint

起点坐标

entryDirection

起点方向(单位向量)

entryExt

起点延申线长度

exitPoint

终点坐标

exitDirection

终点方向

exitExt

终点延伸线

turnRatio

折弯处比例