Home
last modified time | relevance | path

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

12

/third_party/boost/boost/geometry/strategies/spherical/
Denvelope_segment.hpp93 static inline void pre(T & lat1, T & lat2) in pre()
96 lat2 = math::latitude_convert_ep<Units>(lat2); in pre()
100 static inline void post(T & lat1, T & lat2) in post()
103 lat2 = math::latitude_convert_ep<Units>(lat2); in post()
104 std::swap(lat1, lat2); in post()
118 CalculationType& lat2) in swap() argument
121 std::swap(lat1, lat2); in swap()
157 CalculationType& lat2, in compute_box_corners() argument
167 CalculationType lat2_rad = math::as_radian<Units>(lat2); in compute_box_corners()
175 if (lat1 > lat2) in compute_box_corners()
[all …]
Ddistance_cross_track.hpp416 return_type lat2 = geometry::get_as_radian<1>(sp2); in apply() local
425 (lon1, lat1, lon2, lat2); in apply()
430 (lon2, lat2, lon, lat).azimuth; in apply()
498 inline radius_type vertical_or_meridian(T1 lat1, T2 lat2) const in vertical_or_meridian()
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()
618 return m_strategy.radius() * (lat1 - lat2); in vertical_or_meridian()
Ddistance_segment_box.hpp116 CT lat2 = geometry::get_as_radian<1>(p1); 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()
Dside_by_cross_track.hpp67 calc_t lat2 = geometry::get_as_radian<1>(p2); in apply() local
75 (lon1, lat1, lon2, lat2).azimuth; in apply()
/third_party/boost/boost/geometry/formulas/
Dmeridian_inverse.hpp50 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 …]
Dvertex_longitude.hpp41 T const& lat2, //segment point 2 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()
70 T const& lat2, //segment point 2 in apply() argument
83 || math::equals(lat2, half_pi) in apply()
85 || math::equals(lat2, -half_pi)) in apply()
101 CT const bet2 = atan(one_minus_f * tan(lat2)); in apply()
155 if (lat1 * lat2 < c0)//different hemispheres in apply()
157 if ((lat2 - lat1) * lat3 > c0)// ascending segment in apply()
[all …]
Dmeridian_direct.hpp73 result.lat2 = apply(s0 + signed_distance, spheroid); in apply()
81 if (result.lat2 > half_pi && in apply()
82 result.lat2 < one_and_a_half_pi) in apply()
86 else if (result.lat2 < -half_pi && in apply()
87 result.lat2 > -one_and_a_half_pi) in apply()
103 >(result.lon2, result.lat2); in apply()
112 quantities::apply(lo1, la1, result.lon2, result.lat2, in apply()
Dspherical.hpp130 T2 const& lat2) in spherical_azimuth() argument
149 CT const cos_lat2 = cos(lat2); in spherical_azimuth()
151 CT const sin_lat2 = sin(lat2); in spherical_azimuth()
173 T2 const& lon2, T2 const& lat2) 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()
259 CT const lat2 = atan2(cos_alp0 * sin_sig2, norm2); in spherical_direct() local
265 result.lat2 = lat2; in spherical_direct()
Dmeridian_segment.hpp38 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()
Dthomas_inverse.hpp62 T2 const& lat2, in apply() argument
69 if ( math::equals(lon1, lon2) && math::equals(lat1, lat2) ) in apply()
91 CT const theta2 = math::equals(lat2, pi_half) ? lat2 : in apply()
92 math::equals(lat2, -pi_half) ? lat2 : in apply()
93 atan(one_minus_f * tan(lat2)); in apply()
207 quantities::apply(lon1, lat1, lon2, lat2, in apply()
Dresult_direct.hpp23 , lat2(0) in result_direct()
30 T lat2; member
Dthomas_direct.hpp182 result.lat2 = atan(tan_theta2 / one_minus_f); in apply()
190 result.lat2 = atan(tan_theta2 / one_minus_f); in apply()
195 result.lat2 = -result.lat2; in apply()
202 quantities::apply(lon1, lat1, result.lon2, result.lat2, in apply()
Dvincenty_inverse.hpp72 T2 const& lat2, in apply()
77 if (math::equals(lat1, lat2) && math::equals(lon1, lon2)) in apply()
107 CT const tan_U2 = one_min_f * tan(lat2); // above (1) in apply()
208 quantities::apply(lon1, lat1, lon2, lat2, in apply()
Dandoyer_inverse.hpp63 T2 const& lat2, in apply() argument
70 if ( math::equals(lon1, lon2) && math::equals(lat1, lat2) ) in apply()
85 CT const sin_lat2 = sin(lat2); in apply()
86 CT const cos_lat2 = cos(lat2); in apply()
/third_party/boost/boost/geometry/strategies/geographic/
Ddistance_cross_track.hpp151 inline CT vertical_or_meridian(CT const& lat1, CT const& lat2) const in vertical_or_meridian()
159 return meridian_inverse::meridian_not_crossing_pole_dist(lat1, lat2, in vertical_or_meridian()
202 CT const& lon2, CT const& lat2, //p2 in non_iterative_case() argument
206 ::apply(lon1, lat1, lon2, lat2, spheroid); in non_iterative_case()
243 CT const& lon2, CT const& lat2, //p2 in bisection() argument
262 CT pr_lat = lat2; in bisection()
285 s14 -= inverse_distance_type::apply(res14.lon2, res14.lat2, pl_lon, pl_lat, in bisection()
288 pr_lat = res14.lat2; in bisection()
292 s14 += inverse_distance_type::apply(res14.lon2, res14.lat2, pr_lon, pr_lat, in bisection()
295 pl_lat = res14.lat2; in bisection()
[all …]
Ddistance.hpp92 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()
123 CT lat2 = get_as_radian<1>(point2); in apply() local
125 return apply(lon1, lat1, lon2, lat2, m_spheroid); in apply()
/third_party/boost/libs/geometry/test/strategies/
Dandoyer.cpp69 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() argument
97 bg::assign_values(p2, lon2, lat2); in test_distance()
117 to_rad(lon2), to_rad(lat2), in test_distance()
129 double lon2, double lat2, in test_azimuth() argument
141 …doyer_inverse_type::apply(to_rad(lon1), to_rad(lat1), to_rad(lon2), to_rad(lat2), stype()).azimuth; 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 …]
Ddistance.cpp40 void test_distance(double lon1, double lat1, double lon2, double lat2) in test_distance() argument
54 bg::assign_values(p2, lon2, lat2); in test_distance()
67 lat2 * bg::math::d2r<double>(), in test_distance()
77 double lon2, double lat2) 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()
Dvincenty.cpp108 void test_vincenty(double lon1, double lat1, double lon2, double lat2, in test_vincenty() argument
134 lat2 * d2r, in test_vincenty()
155 calc_t direct_lat2 = result_d.lat2; in test_vincenty()
163 check_deg("direct_lat2_deg", direct_lat2_deg, calc_t(lat2), tolerance, error); in test_vincenty()
185 bg::assign_values(p2, lon2, lat2); 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()
206 double lon2, double lat2, in test_side() argument
228 bg::assign_values(p2, lon2, lat2); in test_side()
Dthomas.cpp42 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() argument
70 bg::assign_values(p2, lon2, lat2); in test_distance()
79 double lon2, double lat2, in test_side() argument
101 bg::assign_values(p2, lon2, lat2); in test_side()
/third_party/boost/libs/geometry/test/formulas/
Ddirect.cpp34 r.lat2 = -r.lat2; in symmetrize_wrt_origin()
64 …check_one(result.lat2, expected.lat2, reference.lat2, reference_error, true, check_reference_only); in check_direct_sph()
91 result.lat2 *= r2d; in test_all()
98 result.lat2 *= r2d; in test_all()
105 result.lat2 *= r2d; in test_all()
119 result.lat2 *= r2d; in test_all()
133 result.lat2, result.lon2, result.reverse_azimuth, in test_all()
Ddirect_meridian.cpp33 >(result.lon2, result.lat2); in check_meridian_direct()
39 >(reference.lon2, reference.lat2); in check_meridian_direct()
43 << " " << result.lat2 * bg::math::r2d<double>() << ")"; in check_meridian_direct()
47 check_one("lat:" + ss.str(), result.lat2, expected.lat, reference.lat2, in check_meridian_direct()
/third_party/boost/boost/geometry/algorithms/detail/disjoint/
Dsegment_box.hpp146 CT lat2 = geometry::get_as_radian<1>(p1_normalized); in apply() local
151 std::swap(lat1, lat2); in apply()
160 lon2, lat2, in apply()
178 azimuth_strategy.apply(lon1, lat1, lon2, lat2, alp1); in apply()
199 CT lat_sum = lat1 + lat2; in apply()
219 lon2, lat2, in apply()
/third_party/grpc/examples/csharp/RouteGuide/RouteGuide/
DRouteGuideUtil.cs65 double lat2 = ToRadians(end.GetLatitude()); in GetDistance()
68 double deltalat = lat2 - lat1; in GetDistance()
71 …th.Sin(deltalat / 2) * Math.Sin(deltalat / 2) + Math.Cos(lat1) * Math.Cos(lat2) * Math.Sin(deltalo… in GetDistance()
/third_party/boost/boost/geometry/algorithms/detail/envelope/
Dintersects_antimeridian.hpp35 CoordinateType const& lat2) in apply()
45 math::equals(math::abs(lat2), constants::max_latitude()) in apply()

12