/third_party/boost/boost/geometry/strategies/spherical/ |
D | envelope_segment.hpp | 57 static inline CalculationType apply(T1 const& lat1, in apply() 62 ::apply(lat1, alp1); in apply() 70 static inline CalculationType apply(T1 const& lat1, in apply() 75 ::apply(lat1, alp1, strategy.model()); in apply() 93 static inline void pre(T & lat1, T & lat2) in pre() 95 lat1 = math::latitude_convert_ep<Units>(lat1); in pre() 100 static inline void post(T & lat1, T & lat2) in post() 102 lat1 = math::latitude_convert_ep<Units>(lat1); in post() 104 std::swap(lat1, lat2); in post() 116 CalculationType& lat1, in swap() argument [all …]
|
D | side_by_cross_track.hpp | 65 calc_t lat1 = geometry::get_as_radian<1>(p1); in apply() local 72 (lon1, lat1, lon, lat).azimuth; in apply() 75 (lon1, lat1, lon2, lat2).azimuth; in apply()
|
D | distance_cross_track.hpp | 414 return_type lat1 = geometry::get_as_radian<1>(sp1); in apply() local 421 (lon1, lat1, lon, lat).azimuth; in apply() 425 (lon1, lat1, lon2, lat2); in apply() 498 inline radius_type vertical_or_meridian(T1 lat1, T2 lat2) const in vertical_or_meridian() argument 500 return m_strategy.radius() * (lat1 - lat2); in vertical_or_meridian() 616 inline radius_type vertical_or_meridian(T1 lat1, T2 lat2) const in vertical_or_meridian() argument 618 return m_strategy.radius() * (lat1 - lat2); in vertical_or_meridian()
|
D | distance_segment_box.hpp | 114 CT lat1 = geometry::get_as_radian<1>(p0); in segment_below_of_box() local 121 std::swap(lat1, lat2); in segment_below_of_box() 125 CT lat_sum = lat1 + lat2; in segment_below_of_box() 134 az_strategy.apply(lon1, lat1, lon2, lat2, alp1); in segment_below_of_box() 139 >::apply(lon1, lat1, lon2, lat2, in segment_below_of_box()
|
/third_party/boost/boost/geometry/formulas/ |
D | meridian_inverse.hpp | 50 static bool meridian_not_crossing_pole(T lat1, T lat2, CT diff) in meridian_not_crossing_pole() argument 54 (math::equals(lat2, half_pi) && math::equals(lat1, -half_pi)); in meridian_not_crossing_pole() 64 static CT meridian_not_crossing_pole_dist(T lat1, T lat2, Spheroid const& spheroid) in meridian_not_crossing_pole_dist() argument 66 return math::abs(apply(lat2, spheroid) - apply(lat1, spheroid)); in meridian_not_crossing_pole_dist() 70 static CT meridian_crossing_pole_dist(T lat1, T lat2, Spheroid const& spheroid) in meridian_crossing_pole_dist() argument 75 if (lat1+lat2 < c0) in meridian_crossing_pole_dist() 80 - apply(lat1, spheroid) - apply(lat2, spheroid)); in meridian_crossing_pole_dist() 84 static result apply(T lon1, T lat1, T lon2, T lat2, Spheroid const& spheroid) in apply() argument 90 if (lat1 > lat2) in apply() 92 std::swap(lat1, lat2); in apply() [all …]
|
D | vertex_longitude.hpp | 40 static inline CT apply(T const& lat1, //segment point 1 in apply() argument 47 CT const A = sin(lat1) * cos(lat2) * cos(lat3) * sin_l12; in apply() 48 CT const B = sin(lat1) * cos(lat2) * cos(lat3) * cos_l12 in apply() 49 - cos(lat1) * sin(lat2) * cos(lat3); in apply() 69 static inline CT apply(T const& lat1, //segment point 1 in apply() argument 82 if (math::equals(lat1, half_pi) in apply() 84 || math::equals(lat1, -half_pi) in apply() 100 CT const bet1 = atan(one_minus_f * tan(lat1)); in apply() 155 if (lat1 * lat2 < c0)//different hemispheres in apply() 157 if ((lat2 - lat1) * lat3 > c0)// ascending segment in apply() [all …]
|
D | spherical.hpp | 128 T1 const& lat1, in spherical_azimuth() argument 148 CT const cos_lat1 = cos(lat1); in spherical_azimuth() 150 CT const sin_lat1 = sin(lat1); in spherical_azimuth() 172 inline ReturnType spherical_azimuth(T1 const& lon1, T1 const& lat1, in spherical_azimuth() argument 175 return spherical_azimuth<ReturnType, false>(lon1, lat1, lon2, lat2).azimuth; in spherical_azimuth() 179 inline T spherical_azimuth(T const& lon1, T const& lat1, T const& lon2, T const& lat2) in spherical_azimuth() argument 181 return spherical_azimuth<T, false>(lon1, lat1, lon2, lat2).azimuth; in spherical_azimuth() 229 CT const& lat1, in spherical_direct() argument 237 CT const sin_lat1 = sin(lat1); in spherical_direct() 239 CT const cos_lat1 = cos(lat1); in spherical_direct()
|
D | meridian_segment.hpp | 38 static inline SegmentType is_meridian(T lon1, T lat1, T lon2, T lat2) in is_meridian() argument 43 if ( meridian_not_crossing_pole(lat1, lat2, diff) ) in is_meridian() 55 static bool meridian_not_crossing_pole(T lat1, T lat2, T diff) in meridian_not_crossing_pole() argument 59 (math::equals(lat2, half_pi) && math::equals(lat1, -half_pi)); in meridian_not_crossing_pole()
|
D | vertex_latitude.hpp | 39 static inline CT apply(T1 const& lat1, in apply() argument 42 return std::acos( math::abs(cos(lat1) * sin(alp1)) ); in apply() 77 static inline CT apply(T1 const& lat1, in apply() argument 86 CT const bet1 = atan( one_minus_f * tan(lat1) ); in apply()
|
D | thomas_inverse.hpp | 60 T1 const& lat1, in apply() argument 69 if ( math::equals(lon1, lon2) && math::equals(lat1, lat2) ) in apply() 88 CT const theta1 = math::equals(lat1, pi_half) ? lat1 : in apply() 89 math::equals(lat1, -pi_half) ? lat1 : in apply() 90 atan(one_minus_f * tan(lat1)); in apply() 207 quantities::apply(lon1, lat1, lon2, lat2, in apply()
|
D | thomas_direct.hpp | 70 CT const lat1 = la1; in apply() local 90 CT lat1_alt = lat1; in apply() 91 bool alter_result = vflip_if_south(lat1, azimuth12, lat1_alt, azi12_alt); in apply() 202 quantities::apply(lon1, lat1, result.lon2, result.lat2, in apply() 221 … static inline bool vflip_if_south(CT const& lat1, CT const& azi12, CT & lat1_alt, CT & azi12_alt) in vflip_if_south() argument 230 lat1_alt = -lat1; in vflip_if_south() 236 lat1_alt = -lat1; in vflip_if_south()
|
D | gnomonic_intersection.hpp | 83 double lat1, lon1; in apply() local 90 && gnom_t::inverse(lon, lat, x, y, lon1, lat1, spheroid); in apply() 97 if (math::equals(lat1, lat) && math::equals(lon1, lon)) in apply() 102 lat = lat1; in apply()
|
D | vincenty_inverse.hpp | 70 T1 const& lat1, in apply() 77 if (math::equals(lat1, lat2) && math::equals(lon1, lon2)) in apply() 106 CT const tan_U1 = one_min_f * tan(lat1); // above (1) in apply() 208 quantities::apply(lon1, lat1, lon2, lat2, in apply()
|
D | andoyer_inverse.hpp | 61 T1 const& lat1, in apply() argument 70 if ( math::equals(lon1, lon2) && math::equals(lat1, lat2) ) in apply() 83 CT const sin_lat1 = sin(lat1); in apply() 84 CT const cos_lat1 = cos(lat1); in apply()
|
D | vincenty_direct.hpp | 76 CT const lat1 = la1; in apply() local 87 CT const tan_U1 = one_min_f * tan(lat1); in apply() 163 quantities::apply(lon1, lat1, result.lon2, result.lat2, in apply()
|
/third_party/boost/libs/geometry/test/strategies/ |
D | andoyer.cpp | 69 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() argument 96 bg::assign_values(p1, lon1, lat1); in test_distance() 116 d_formula = andoyer_inverse_type::apply(to_rad(lon1), to_rad(lat1), in test_distance() 128 void test_azimuth(double lon1, double lat1, in test_azimuth() argument 141 …rtype a_formula = andoyer_inverse_type::apply(to_rad(lon1), to_rad(lat1), to_rad(lon2), to_rad(lat… in test_azimuth() 161 void test_distazi(double lon1, double lat1, double lon2, double lat2, in test_distazi() argument 164 test_distance<P1, P2>(lon1, lat1, lon2, lat2, expected_km); in test_distazi() 165 test_azimuth<P1, P2>(lon1, lat1, lon2, lat2, expected_azimuth_deg); in test_distazi() 170 void test_distazi_symm(double lon1, double lat1, double lon2, double lat2, in test_distazi_symm() argument 175 test_distazi<P1, P2>(lon1, lat1, lon2, lat2, expected_km, expected_azimuth_deg); in test_distazi_symm() [all …]
|
D | distance.cpp | 40 void test_distance(double lon1, double lat1, double lon2, double lat2) in test_distance() argument 53 bg::assign_values(p1, lon1, lat1); in test_distance() 65 lat1 * bg::math::d2r<double>(), in test_distance() 76 void test_distance_reverse(double lon1, double lat1, in test_distance_reverse() argument 79 test_distance<P1, P2, FormulaPolicy>(lon1, lat1, lon2, lat2); in test_distance_reverse() 80 test_distance<P1, P2, FormulaPolicy>(lon2, lat2, lon1, lat1); in test_distance_reverse()
|
D | vincenty.cpp | 108 void test_vincenty(double lon1, double lat1, double lon2, double lat2, in test_vincenty() argument 132 lat1 * d2r, in test_vincenty() 150 lat1 * d2r, in test_vincenty() 184 bg::assign_values(p1, lon1, lat1); in test_vincenty() 194 void test_vincenty(double lon1, double lat1, double lon2, double lat2, in test_vincenty() argument 199 test_vincenty<P1, P2>(lon1, lat1, lon2, lat2, in test_vincenty() 205 void test_side(double lon1, double lat1, in test_side() argument 227 bg::assign_values(p1, lon1, lat1); in test_side()
|
D | thomas.cpp | 42 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() argument 69 bg::assign_values(p1, lon1, lat1); in test_distance() 78 void test_side(double lon1, double lat1, in test_side() argument 100 bg::assign_values(p1, lon1, lat1); in test_side()
|
/third_party/boost/boost/geometry/algorithms/detail/disjoint/ |
D | segment_box.hpp | 144 CT lat1 = geometry::get_as_radian<1>(p0_normalized); in apply() local 151 std::swap(lat1, lat2); in apply() 159 >::template apply<geometry::radian>(lon1, lat1, in apply() 178 azimuth_strategy.apply(lon1, lat1, lon2, lat2, alp1); in apply() 179 azimuth_strategy.apply(lon1, lat1, b_lon_min, b_lat_min, a_b0); in apply() 180 azimuth_strategy.apply(lon1, lat1, b_lon_max, b_lat_min, a_b1); in apply() 181 azimuth_strategy.apply(lon1, lat1, b_lon_min, b_lat_max, a_b2); in apply() 182 azimuth_strategy.apply(lon1, lat1, b_lon_max, b_lat_max, a_b3); in apply() 199 CT lat_sum = lat1 + lat2; in apply() 201 if ((lat1 < b_lat_min && lat_sum > CT(0)) in apply() [all …]
|
/third_party/boost/boost/geometry/strategies/geographic/ |
D | distance_cross_track.hpp | 151 inline CT vertical_or_meridian(CT const& lat1, CT const& lat2) const in vertical_or_meridian() argument 159 return meridian_inverse::meridian_not_crossing_pole_dist(lat1, lat2, in vertical_or_meridian() 201 static inline non_iterative_case(CT const& lon1, CT const& lat1, //p1 in non_iterative_case() argument 206 ::apply(lon1, lat1, lon2, lat2, spheroid); in non_iterative_case() 208 return non_iterative_case(lon1, lat1, distance); in non_iterative_case() 242 static void bisection(CT const& lon1, CT const& lat1, //p1 in bisection() argument 260 CT pl_lat = lat1; in bisection() 268 res14 = direct_distance_type::apply(lon1, lat1, s14, a12, spheroid); in bisection() 330 static void newton(CT const& lon1, CT const& lat1, //p1 in newton() argument 360 res14 = direct_distance_type::apply(lon1, lat1, s14, a12, spheroid); in newton() [all …]
|
D | distance.hpp | 92 static inline CT apply(CT lon1, CT lat1, CT lon2, CT lat2, in apply() argument 101 meridian_inverse::apply(lon1, lat1, lon2, lat2, spheroid); in apply() 111 >::apply(lon1, lat1, lon2, lat2, spheroid).distance; in apply() 121 CT lat1 = get_as_radian<1>(point1); in apply() local 125 return apply(lon1, lat1, lon2, lat2, m_spheroid); in apply()
|
/third_party/grpc/examples/csharp/RouteGuide/RouteGuide/ |
D | RouteGuideUtil.cs | 64 double lat1 = ToRadians(start.GetLatitude()); in GetDistance() 68 double deltalat = lat2 - lat1; in GetDistance() 71 …double a = Math.Sin(deltalat / 2) * Math.Sin(deltalat / 2) + Math.Cos(lat1) * Math.Cos(lat2) * Mat… in GetDistance()
|
/third_party/boost/boost/geometry/algorithms/detail/envelope/ |
D | intersects_antimeridian.hpp | 33 CoordinateType const& lat1, in apply() 43 math::equals(math::abs(lat1), constants::max_latitude()) in apply()
|
/third_party/grpc/examples/node/dynamic_codegen/route_guide/ |
D | route_guide_server.js | 125 var lat1 = toRadians(start.latitude / COORD_FACTOR); 130 var deltalat = lat2-lat1; 133 Math.cos(lat1) * Math.cos(lat2) *
|