mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-02 02:55:29 +02:00
Fixes for 360-deg FOVs
This commit is contained in:
@@ -107,6 +107,11 @@ class OsmNode {
|
||||
start = ((start % 360) + 360) % 360;
|
||||
end = ((end % 360) + 360) % 360;
|
||||
|
||||
// Special case: if start equals end, this represents 360° FOV
|
||||
if (start == end) {
|
||||
return DirectionFov(start, 360.0);
|
||||
}
|
||||
|
||||
double width, center;
|
||||
|
||||
if (start > end) {
|
||||
|
||||
Reference in New Issue
Block a user