diff options
author | 2024-09-05 15:42:22 -0700 | |
---|---|---|
committer | 2024-09-09 15:37:02 +0000 | |
commit | 03dd111dd026cefaf5cfada39e3342d31b71848d (patch) | |
tree | 0c605fa704bdad31385006a17a4792eb7333e603 /lib/provider.dart | |
parent | e39bf6a1e3657542a56f21b3afa6a65ea0a194e2 (diff) |
Flutter SDK 3.24.1ricefish
-update packages
-format files
-fix analyze issues
Change-Id: I9eb84f1bca7623ce676695904f172aff127c8ced
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
(cherry picked from commit 15093ee4880d535c65faed929801c2d79d1a212c)
Diffstat (limited to 'lib/provider.dart')
-rw-r--r-- | lib/provider.dart | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/provider.dart b/lib/provider.dart index c96c8e4..e082bf0 100644 --- a/lib/provider.dart +++ b/lib/provider.dart @@ -78,7 +78,11 @@ double calculateDistance(point1, point2) { double halfCosLatDiff = cos((point2.latitude - point1.latitude) * p) / 2;
double halfCosLngDiff = cos((point2.longitude - point1.longitude) * p) / 2;
- double dist = 0.5 - halfCosLatDiff + cos(point1.latitude * p) * cos(point2.latitude * p) * (0.5 - halfCosLngDiff);
+ double dist = 0.5 -
+ halfCosLatDiff +
+ cos(point1.latitude * p) *
+ cos(point2.latitude * p) *
+ (0.5 - halfCosLngDiff);
return 12742 * asin(sqrt(dist));
}
|