LCOV - code coverage report | ||||||||||||||||||||||
![]() | ||||||||||||||||||||||
|
||||||||||||||||||||||
![]() |
Line data Source code 1 : import 'dart:math'; 2 : 3 : class Spherical_LawOfCosines { 4 : static double distance(double lat1, lon1, lat2, lon2) { 5 0 : double distance = acos( 6 0 : sin(lat1) * sin(lat2) + 7 0 : cos(lat1) * cos(lat2) * 8 0 : cos(lon2 - lon1) 9 : ); 10 0 : if (distance < 0) distance = distance + PI; 11 : 12 : var EarthRadius = 6378137.0; // WGS84 major axis 13 0 : return EarthRadius * distance; 14 : } 15 : } |
![]() |
Generated by: LCOV version 1.13 |