修复一个bug。

This commit is contained in:
n3040 2023-02-20 21:09:26 +08:00
parent 1fd8d0863a
commit b5e17a3b9e
1 changed files with 1 additions and 1 deletions

2
dem.py
View File

@ -275,7 +275,7 @@ class Dem:
side_width = toml_dict["parameter"]["side_width"] # 边线宽度
_line_angel = math.atan((point_y_e - point_y_s) / (point_x_e - point_x_s))
if point_x_e < point_x_s:
line_angel = _line_angel + math.pi / 2
line_angel = _line_angel + math.pi
else:
line_angel = _line_angel
left_offset_x = side_width * math.cos(line_angel + math.pi / 2)