Home
last modified time | relevance | path

Searched refs:calc_t (Results 1 – 25 of 36) sorted by relevance

12

/third_party/boost/boost/geometry/strategies/spherical/
Dside_by_cross_track.hpp60 >::type calc_t; in apply() typedef
62 calc_t d1 = 0.001; // m_strategy.apply(sp1, p); in apply()
64 calc_t lon1 = geometry::get_as_radian<0>(p1); in apply()
65 calc_t lat1 = geometry::get_as_radian<1>(p1); in apply()
66 calc_t lon2 = geometry::get_as_radian<0>(p2); in apply()
67 calc_t lat2 = geometry::get_as_radian<1>(p2); in apply()
68 calc_t lon = geometry::get_as_radian<0>(p); in apply()
69 calc_t lat = geometry::get_as_radian<1>(p); in apply()
71 calc_t crs_AD = geometry::formula::spherical_azimuth<calc_t, false> in apply()
74 calc_t crs_AB = geometry::formula::spherical_azimuth<calc_t, false> in apply()
[all …]
Dpoint_in_poly_winding.hpp177 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in apply() typedef
179 typedef math::detail::constants_on_spheroid<calc_t, units_t> constants; in apply()
204 calc_t const pi = constants::half_period(); in apply()
205 calc_t const s1_lat = get<1>(s1); in apply()
206 calc_t const s2_lat = get<1>(s2); in apply()
283 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in check_touch() typedef
285 typedef math::detail::constants_on_spheroid<calc_t, units_t> constants; in check_touch()
287 calc_t const c0 = 0; in check_touch()
288 calc_t const c2 = 2; in check_touch()
289 calc_t const pi = constants::half_period(); in check_touch()
[all …]
Ddisjoint_box_box.hpp51 >::type calc_t; in apply() typedef
53 typedef math::detail::constants_on_spheroid<calc_t, units_t> constants; in apply()
55 calc_t const b1_min = get<min_corner, 0>(box1); in apply()
56 calc_t const b1_max = get<max_corner, 0>(box1); in apply()
57 calc_t const b2_min = get<min_corner, 0>(box2); in apply()
58 calc_t const b2_max = get<max_corner, 0>(box2); in apply()
61 calc_t const diff1 = b1_max - b1_min; in apply()
62 calc_t const diff2 = b2_max - b2_min; in apply()
68 calc_t const diff_min = math::longitude_distance_unsigned<units_t>(b1_min, b2_min); in apply()
69 calc_t const b2_min_transl = b1_min + diff_min; // always right of b1_min in apply()
[all …]
Dazimuth.hpp82 >::type calc_t; in compute() typedef
84 geometry::formula::result_spherical<calc_t> in compute()
87 calc_t, in compute()
89 >(calc_t(lon1_rad), calc_t(lat1_rad), in compute()
90 calc_t(lon2_rad), calc_t(lat2_rad)); in compute()
Ddensify.hpp83 >::type calc_t; in apply() typedef
85 calc_t angle01; in apply()
87 formula::interpolate_point_spherical<calc_t> formula; in apply()
98 calc_t step = angle01 / (n + 1); in apply()
100 calc_t a = step; in apply()
Dline_interpolate.hpp87 >::type calc_t; in apply() typedef
89 formula::interpolate_point_spherical<calc_t> formula; in apply()
91 calc_t angle01; in apply()
95 calc_t a = angle01 * fraction; in apply()
Dintersection.hpp298 <segment1_type, segment2_type, CalculationType>::type calc_t; in apply() typedef
300 calc_t const c0 = 0; in apply()
301 calc_t const c1 = 1; in apply()
303 typedef model::point<calc_t, 3, cs::cartesian> vec3d_t; in apply()
316 calc_t dist_b1_b2 = 0; in apply()
341 calc_t dist_a1_a2 = 0; in apply()
365 calc_t len1 = 0; in apply()
376 calc_t len2 = 0; in apply()
424 calc_t dot_n1n2 = dot_product(plane1.normal, plane2.normal); in apply()
441 return collinear_one_degenerated<Policy, calc_t>(a, true, b1, b2, a1, a2, b1v, b2v, in apply()
[all …]
/third_party/boost/boost/geometry/formulas/
Dgeographic.hpp38 typedef typename coordinate_type<Point3d>::type calc_t; in geo_to_cart3d() typedef
40 calc_t const c1 = 1; in geo_to_cart3d()
41 calc_t const e_sqr = eccentricity_sqr<calc_t>(spheroid); in geo_to_cart3d()
43 calc_t const lon = get_as_radian<0>(point_geo); in geo_to_cart3d()
44 calc_t const lat = get_as_radian<1>(point_geo); in geo_to_cart3d()
48 calc_t const sin_lat = sin(lat); in geo_to_cart3d()
51 calc_t const N = c1 / math::sqrt(c1 - e_sqr * math::sqr(sin_lat)); in geo_to_cart3d()
52 calc_t const N_cos_lat = N * cos(lat); in geo_to_cart3d()
64 typedef typename coordinate_type<Point3d>::type calc_t; in geo_to_cart3d() typedef
66 calc_t const c1 = 1; in geo_to_cart3d()
[all …]
Dspherical.hpp59 typedef typename coordinate_type<Point3d>::type calc_t; in sph_to_cart3d() typedef
61 calc_t const lon = get_as_radian<0>(point_sph); in sph_to_cart3d()
62 calc_t const lat = get_as_radian<1>(point_sph); in sph_to_cart3d()
63 calc_t x, y, z; in sph_to_cart3d()
85 typedef typename coordinate_type<Point3d>::type calc_t; in cart3d_to_sph() typedef
87 calc_t const x = get<0>(point_3d); in cart3d_to_sph()
88 calc_t const y = get<1>(point_3d); in cart3d_to_sph()
89 calc_t const z = get<2>(point_3d); in cart3d_to_sph()
90 calc_t lonr, latr; in cart3d_to_sph()
118 typedef typename select_coordinate_type<Point3d1, Point3d2>::type calc_t; in sph_side_value() typedef
[all …]
/third_party/boost/boost/geometry/algorithms/detail/sections/
Dsection_functions.hpp66 >::type calc_t; in apply() typedef
69 calc_t const c0 = 0; in apply()
71 calc_t const value = get<0>(point); in apply()
72 calc_t const other_min = get<min_corner, 0>(other_box); in apply()
73 calc_t const other_max = get<max_corner, 0>(other_box); in apply()
89 calc_t const diff_min = math::longitude_distance_signed in apply()
91 units_t, calc_t in apply()
94 calc_t const diff_min_min = math::longitude_distance_signed in apply()
96 units_t, calc_t in apply()
103 calc_t const diff_max = math::longitude_distance_signed in apply()
[all …]
/third_party/boost/boost/geometry/srs/projections/impl/
Dpj_fwd.hpp60 typedef typename P::type calc_t; in pj_fwd() typedef
61 static const calc_t EPS = 1.0e-12; in pj_fwd()
65 calc_t lp_lon = geometry::get_as_radian<0>(ll); in pj_fwd()
66 calc_t lp_lat = geometry::get_as_radian<1>(ll); in pj_fwd()
67 calc_t const t = geometry::math::abs(lp_lat) - geometry::math::half_pi<calc_t>(); in pj_fwd()
77 … lp_lat = lp_lat < 0. ? -geometry::math::half_pi<calc_t>() : geometry::math::half_pi<calc_t>(); in pj_fwd()
90 calc_t x = 0; in pj_fwd()
91 calc_t y = 0; in pj_fwd()
Dpj_inv.hpp60 typedef typename PAR::type calc_t; in pj_inv() typedef
61 static const calc_t EPS = 1.0e-12; in pj_inv()
65 calc_t xy_x = (geometry::get<0>(xy) * par.to_meter - par.x0) * par.ra; in pj_inv()
66 calc_t xy_y = (geometry::get<1>(xy) * par.to_meter - par.y0) * par.ra; in pj_inv()
67 calc_t lon = 0, lat = 0; in pj_inv()
74 …if (par.geoc && geometry::math::abs(geometry::math::abs(lat)-geometry::math::half_pi<calc_t>()) > … in pj_inv()
/third_party/boost/boost/geometry/algorithms/detail/
Ddirection_code.hpp53 >::type calc_t; in apply() typedef
55 typedef model::infinite_line<calc_t> line_type; in apply()
70 = detail::make::make_perpendicular_line<calc_t>(segment_a, in apply()
78 calc_t const sv = arithmetic::side_value(line, point); in apply()
98 typedef typename geometry::select_coordinate_type <Point1, Point2>::type calc_t; in apply() typedef
103 static calc_t const c0 = 0; in apply()
131 calc_t const dlon1 = math::longitude_distance_signed<units_t, calc_t>(b0, a0); in apply()
132 calc_t const dlon2 = math::longitude_distance_signed<units_t, calc_t>(b0, p0); in apply()
135 calc_t const dlat1 = latitude_distance_signed<units_t, calc_t>(b1, a1, dlon1, is_antilon1); in apply()
136 calc_t const dlat2 = latitude_distance_signed<units_t, calc_t>(b1, p1, dlon2, is_antilon2); in apply()
[all …]
Dcalculate_point_order.hpp110 typedef typename Strategy::template result_type<Ring>::type calc_t; in apply() typedef
111 typedef clean_point<iter_t, calc_t> clean_point_t; in apply()
115 calc_t const zero = 0; in apply()
116 calc_t const pi = math::pi<calc_t>(); in apply()
139 calc_t diff; in apply()
174 calc_t diff = 0; in apply()
215 calc_t angles_sum = zero; in apply()
221 calc_t diff = 0; in apply()
/third_party/boost/boost/geometry/strategies/cartesian/
Dpoint_in_poly_franklin.hpp92 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in apply() typedef
94 calc_t const& px = get<0>(point); in apply()
95 calc_t const& py = get<1>(point); in apply()
96 calc_t const& x1 = get<0>(seg1); in apply()
97 calc_t const& y1 = get<1>(seg1); in apply()
98 calc_t const& x2 = get<0>(seg2); in apply()
99 calc_t const& y2 = get<1>(seg2); in apply()
Ddensify.hpp60 >::type calc_t; in apply() typedef
62 typedef model::point<calc_t, geometry::dimension<Point>::value, cs::cartesian> calc_point_t; in apply()
71 calc_t const dot01 = geometry::dot_product(dir01, dir01); in apply()
72 calc_t const len = math::sqrt(dot01); in apply()
86 calc_t step = len / (n + 1); in apply()
88 calc_t d = step; in apply()
95 geometry::multiply_value(pd, calc_t(i + 1)); in apply()
96 geometry::divide_value(pd, calc_t(n + 1)); in apply()
Dpoint_in_poly_crossings_multiply.hpp92 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in apply() typedef
94 calc_t const tx = get<0>(point); in apply()
95 calc_t const ty = get<1>(point); in apply()
96 calc_t const x0 = get<0>(seg1); in apply()
97 calc_t const y0 = get<1>(seg1); in apply()
98 calc_t const x1 = get<0>(seg2); in apply()
99 calc_t const y1 = get<1>(seg2); in apply()
Dpoint_in_poly_winding.hpp205 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in check_touch() typedef
207 calc_t const px = get<0>(point); in check_touch()
208 calc_t const s1x = get<0>(seg1); in check_touch()
209 calc_t const s2x = get<0>(seg2); in check_touch()
218 calc_t const py = get<1>(point); in check_touch()
219 calc_t const s1y = get<1>(seg1); in check_touch()
220 calc_t const s2y = get<1>(seg2); in check_touch()
236 typedef typename calculation_type<Point, PointOfSegment>::type calc_t; in calculate_count() typedef
238 calc_t const p = get<0>(point); in calculate_count()
239 calc_t const s1 = get<0>(seg1); in calculate_count()
[all …]
/third_party/boost/boost/geometry/strategies/geographic/
Darea.hpp86 >::type calc_t; typedef
89 calc_t const m_a2; // squared equatorial radius
90 calc_t const m_e2; // squared eccentricity
91 calc_t const m_ep2; // squared second eccentricity
92 calc_t const m_ep; // second eccentricity
93 calc_t const m_c2; // squared authalic radius
98 , m_e2(formula::eccentricity_sqr<calc_t>(spheroid)) in spheroid_constants()
99 , m_ep2(m_e2 / (calc_t(1.0) - m_e2)) in spheroid_constants()
103 calc_t, Spheroid, srs_spheroid_tag in spheroid_constants()
Dside.hpp117 >::type calc_t; in apply() typedef
120 <calc_t, false, true, false, false, false> inverse_formula; in apply()
122 calc_t a1p = azimuth<calc_t, inverse_formula>(p1, p, m_model); in apply()
123 calc_t a12 = azimuth<calc_t, inverse_formula>(p1, p2, m_model); in apply()
Dazimuth.hpp97 >::type calc_t; in compute() typedef
101 calc_t, in compute()
109 inverse_result i_res = inverse_type::apply(calc_t(lon1_rad), calc_t(lat1_rad), in compute()
110 calc_t(lon2_rad), calc_t(lat2_rad), in compute()
Dintersection.hpp308 <Segment1, Segment2, CalculationType>::type calc_t; in apply() typedef
310 typedef srs::spheroid<calc_t> spheroid_type; in apply()
312 static const calc_t c0 = 0; in apply()
329 calc_t const a1_lon = get_as_radian<0>(a1); in apply()
330 calc_t const a1_lat = get_as_radian<1>(a1); in apply()
331 calc_t const a2_lon = get_as_radian<0>(a2); in apply()
332 calc_t const a2_lat = get_as_radian<1>(a2); in apply()
333 calc_t const b1_lon = get_as_radian<0>(b1); in apply()
334 calc_t const b1_lat = get_as_radian<1>(b1); in apply()
335 calc_t const b2_lon = get_as_radian<0>(b2); in apply()
[all …]
Ddensify.hpp72 >::type calc_t; in apply() typedef
74 typedef typename FormulaPolicy::template direct<calc_t, true, false, false, false> direct_t; in apply()
75 …typedef typename FormulaPolicy::template inverse<calc_t, true, true, false, false, false> inverse_… in apply()
88 calc_t step = inv_r.distance / (n + 1); in apply()
90 calc_t current = step; in apply()
Dline_interpolate.hpp83 >::type calc_t; in apply() typedef
86 <calc_t, false, true, false, false, false> inverse_t; in apply()
88 calc_t azimuth = inverse_t::apply(get_as_radian<0>(p0), get_as_radian<1>(p0), in apply()
93 <calc_t, true, false, false, false> direct_t; in apply()
/third_party/boost/libs/geometry/test/strategies/
Dvincenty.cpp117 >::type calc_t; in test_vincenty() typedef
119 calc_t tolerance = non_precise_ct<P1>() || non_precise_ct<P2>() ? in test_vincenty()
121 calc_t error = non_precise_ct<P1>() || non_precise_ct<P2>() ? in test_vincenty()
129 typedef bg::formula::vincenty_inverse<calc_t, true, true> inverse_formula; in test_vincenty()
136 calc_t dist = result_i.distance; in test_vincenty()
137 calc_t az12 = result_i.azimuth; in test_vincenty()
140 calc_t az12_deg = az12 * r2d; in test_vincenty()
143 BOOST_CHECK_CLOSE(dist, calc_t(expected_distance), tolerance); in test_vincenty()
144 check_deg("az12_deg", az12_deg, calc_t(expected_azimuth_12), tolerance, error); in test_vincenty()
147 typedef bg::formula::vincenty_direct<calc_t> direct_formula; in test_vincenty()
[all …]

12