我将更详细地解释数学、构建和边缘案例这里:
https://sandboxspirit.com/blog/simple-geometry-of-roads