Home
last modified time | relevance | path

Searched refs:lat2 (Results 1 – 6 of 6) sorted by relevance

/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/
DRouteGuideUtil.cs64 double lat2 = ToRadians(end.GetLatitude()); in GetDistance()
67 double deltalat = lat2 - lat1; in GetDistance()
70 …th.Sin(deltalat / 2) * Math.Sin(deltalat / 2) + Math.Cos(lat1) * Math.Cos(lat2) * Math.Sin(deltalo… in GetDistance()
/external/grpc-grpc/examples/node/static_codegen/route_guide/
Droute_guide_server.js116 var lat2 = toRadians(end.getLatitude() / COORD_FACTOR);
120 var deltalat = lat2-lat1;
123 Math.cos(lat1) * Math.cos(lat2) *
/external/grpc-grpc/examples/node/dynamic_codegen/route_guide/
Droute_guide_server.js126 var lat2 = toRadians(end.latitude / COORD_FACTOR);
130 var deltalat = lat2-lat1;
133 Math.cos(lat1) * Math.cos(lat2) *
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2LatLng.java192 double lat2 = o.lat().radians(); in getDistance() local
195 double dlat = Math.sin(0.5 * (lat2 - lat1)); in getDistance()
197 double x = dlat * dlat + dlng * dlng * Math.cos(lat1) * Math.cos(lat2); in getDistance()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/routeguide/
DRouteGuideServer.java280 double lat2 = toRadians(RouteGuideUtil.getLatitude(end));
283 double deltaLat = lat2 - lat1;
287 + cos(lat1) * cos(lat2) * sin(deltaLon / 2) * sin(deltaLon / 2);
/external/iproute2/tc/
Dq_tbf.c310 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)prate64) - tc_core_tick2time(qopt->mtu); in tbf_print_opt() local
312 if (lat2 > latency) in tbf_print_opt()
313 latency = lat2; in tbf_print_opt()