Update
parent
a079a9d9a2
commit
c77c58ce6b
|
|
@ -449,7 +449,7 @@ class LinkosDeviceLogService
|
||||||
$y += cos($radian);
|
$y += cos($radian);
|
||||||
}
|
}
|
||||||
|
|
||||||
$degree = round(rad2deg(atan($x / $y)));
|
$degree = round(rad2deg(atan2($y, $x)));
|
||||||
|
|
||||||
if (($x > 0 || $x < 0) && $y < 0) {
|
if (($x > 0 || $x < 0) && $y < 0) {
|
||||||
$degree += 180;
|
$degree += 180;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue