mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Fix construction wall color.
This commit is contained in:
parent
7fbc7cb96f
commit
ed86aef731
2 changed files with 3 additions and 1 deletions
|
@ -126,6 +126,8 @@ class Segment:
|
|||
|
||||
difference: np.ndarray = point_2 - point_1
|
||||
vector: np.ndarray = difference / np.linalg.norm(difference)
|
||||
if vector[0] > 0:
|
||||
vector = -vector
|
||||
self.angle: float = (
|
||||
np.arccos(np.dot(vector, np.array((0.0, 1.0)))) / np.pi
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue