mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-07 08:27:24 +02:00
Fixes for 360-deg FOVs
This commit is contained in:
1 parent
1d65d5ecca
commit
3fc3a72cde
7 files changed
+128
-17
No files matched your search
@@ -743,6 +743,11 @@ class UploadQueueState extends ChangeNotifier {
|
||||
|
||||
// Convert a center direction and FOV to range notation (e.g., 180° center with 90° FOV -> "135-225")
|
||||
String _formatDirectionWithFov(double center, double fov) {
|
||||
// Handle 360-degree FOV as special case
|
||||
if (fov >= 360) {
|
||||
return '0-360';
|
||||
}
|
||||
|
||||
final halfFov = fov / 2;
|
||||
final start = (center - halfFov + 360) % 360;
|
||||
final end = (center + halfFov) % 360;
|
||||
|
||||
Reference in new issue
Block a user