Fix construction wall color.

This commit is contained in:
Sergey Vartanov 2022-01-24 00:55:23 +03:00
parent 7fbc7cb96f
commit ed86aef731
2 changed files with 3 additions and 1 deletions

View file

@ -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
)