From ac7a3d992970ee61a80616fb7ec402e50d325efa Mon Sep 17 00:00:00 2001
From: Oleksandr Husak <oleksandr.husak@mailbox.tu-dresden.de>
Date: Mon, 11 Apr 2022 13:53:35 +0200
Subject: [PATCH] orientation arrow to the x-axis

---
 src/app/components/map/map.component.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/components/map/map.component.ts b/src/app/components/map/map.component.ts
index bf19265..9b60408 100644
--- a/src/app/components/map/map.component.ts
+++ b/src/app/components/map/map.component.ts
@@ -152,8 +152,8 @@ export class MapComponent implements OnInit {
     // --- Orientation
     if ('x' in point) {
       let orient: RelativePos = {
-        "x": point.x + (theta ? Math.sin(theta)*3 : 0), 
-        "y": point.y + (theta ? Math.cos(theta)*3 : 3.5),
+        "x": point.x + (theta ? Math.cos(theta)*3.5 : 3.5), 
+        "y": point.y + (theta ? Math.sin(theta)*3.5 : 0),
         "z": point.z
       }
       let globPointOrient = this.ref2root(orient)
-- 
GitLab