Home
last modified time | relevance | path

Searched refs:point (Results 1 – 25 of 5455) sorted by relevance

12345678910>>...219

/third_party/icu/vendor/double-conversion/upstream/test/cctest/
Dtest-fixed-dtoa.cc45 int point; in TEST() local
47 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST()
49 CHECK_EQ(1, point); in TEST()
51 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST()
53 CHECK_EQ(1, point); in TEST()
55 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST()
57 CHECK_EQ(1, point); in TEST()
59 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST()
61 CHECK_EQ(10, point); in TEST()
63 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)); in TEST()
[all …]
Dtest-bignum-dtoa.cc62 int point; in TEST() local
64 BignumDtoa(1.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
66 CHECK_EQ(1, point); in TEST()
68 BignumDtoa(1.0, BIGNUM_DTOA_FIXED, 3, buffer, &length, &point); in TEST()
69 CHECK_GE(3, length - point); in TEST()
72 CHECK_EQ(1, point); in TEST()
74 BignumDtoa(1.0, BIGNUM_DTOA_PRECISION, 3, buffer, &length, &point); in TEST()
78 CHECK_EQ(1, point); in TEST()
80 BignumDtoa(1.5, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
82 CHECK_EQ(1, point); in TEST()
[all …]
Dtest-dtoa.cc52 int* point) { in DoubleToAscii() argument
64 sign, length, point); in DoubleToAscii()
85 int point; in TEST() local
88 DoubleToAscii(0.0, SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
90 CHECK_EQ(1, point); in TEST()
92 DoubleToAscii(0.0f, SHORTEST_SINGLE, 0, buffer, &sign, &length, &point); in TEST()
94 CHECK_EQ(1, point); in TEST()
96 DoubleToAscii(0.0, FIXED, 2, buffer, &sign, &length, &point); in TEST()
99 CHECK_EQ(1, point); in TEST()
101 DoubleToAscii(0.0, PRECISION, 3, buffer, &sign, &length, &point); in TEST()
[all …]
Dtest-fast-dtoa.cc59 int point; in TEST() local
64 buffer, &length, &point); in TEST()
67 CHECK_EQ(-323, point); in TEST()
71 buffer, &length, &point); in TEST()
74 CHECK_EQ(309, point); in TEST()
77 buffer, &length, &point); in TEST()
80 CHECK_EQ(10, point); in TEST()
83 buffer, &length, &point); in TEST()
86 CHECK_EQ(299, point); in TEST()
89 buffer, &length, &point); in TEST()
[all …]
/third_party/boost/libs/geometry/test/strategies/
Dside_of_intersection.cpp22 typedef bg::model::d2::point_xy<boost::long_long_type> point; in test_main() typedef
23 typedef bg::model::segment<point> segment; in test_main()
27 point no_fb(-99, -99); in test_main()
29 segment a(point(20, 10), point(10, 20)); in test_main()
31 segment b1(point(11, 16), point(20, 14)); // IP with a: (14.857, 15.143) in test_main()
32 segment b2(point(10, 16), point(20, 14)); // IP with a: (15, 15) in test_main()
34 segment c1(point(15, 16), point(13, 8)); in test_main()
35 segment c2(point(15, 16), point(14, 8)); in test_main()
36 segment c3(point(15, 16), point(15, 8)); in test_main()
50 point fb(5, 5); in test_main()
[all …]
Dwinding.cpp78 typedef bg::model::point<T, 2, bg::cs::spherical_equatorial<bg::degree> > point; in test_spherical() typedef
79 typedef bg::model::polygon<point> polygon; in test_spherical()
81 bg::strategy::within::winding<point> s; in test_spherical()
85 test_geometry<point, polygon>( in test_spherical()
92 test_geometry<point, polygon>( in test_spherical()
98 point(-10, 10), in test_spherical()
99 point(10, 10), in test_spherical()
100 point(0, (T)10.001)) == -1 // right side in test_spherical()
102 test_geometry<point, polygon>( in test_spherical()
108 point(10, -10), in test_spherical()
[all …]
/third_party/boost/boost/gil/
Dpoint.hpp35 class point class
48 point() = default;
49 point(T px, T py) : x(px), y(py) {} in point() function in boost::gil::point
51 point operator<<(std::ptrdiff_t shift) const in operator <<()
53 return point(x << shift, y << shift); in operator <<()
56 point operator>>(std::ptrdiff_t shift) const in operator >>()
58 return point(x >> shift, y >> shift); in operator >>()
61 point& operator+=(point const& p) in operator +=()
68 point& operator-=(point const& p) in operator -=()
75 point& operator/=(double d) in operator /=()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/
Dafhints.c247 AF_Point point = hints->points + point_idx; in af_get_segment_index() local
257 if ( point >= segment->first && point <= segment->last ) in af_get_segment_index()
267 if ( point == p ) in af_get_segment_index()
324 AF_Point point; in af_glyph_hints_dump_points() local
341 for ( point = points; point < limit; point++ ) in af_glyph_hints_dump_points()
343 int point_idx = AF_INDEX_NUM( point, points ); in af_glyph_hints_dump_points()
352 if ( contour < climit && *contour == point ) in af_glyph_hints_dump_points()
368 ( point->flags & AF_FLAG_NEAR ) in af_glyph_hints_dump_points()
370 : ( point->flags & AF_FLAG_WEAK_INTERPOLATION ) in af_glyph_hints_dump_points()
374 point->fx, in af_glyph_hints_dump_points()
[all …]
/third_party/freetype/src/autofit/
Dafhints.c247 AF_Point point = hints->points + point_idx; in af_get_segment_index() local
257 if ( point >= segment->first && point <= segment->last ) in af_get_segment_index()
267 if ( point == p ) in af_get_segment_index()
324 AF_Point point; in af_glyph_hints_dump_points() local
341 for ( point = points; point < limit; point++ ) in af_glyph_hints_dump_points()
343 int point_idx = AF_INDEX_NUM( point, points ); in af_glyph_hints_dump_points()
352 if ( contour < climit && *contour == point ) in af_glyph_hints_dump_points()
368 ( point->flags & AF_FLAG_NEAR ) in af_glyph_hints_dump_points()
370 : ( point->flags & AF_FLAG_WEAK_INTERPOLATION ) in af_glyph_hints_dump_points()
374 point->fx, in af_glyph_hints_dump_points()
[all …]
/third_party/boost/libs/geometry/test/cs_undefined/
Dcommon.hpp24 typedef bg::model::point<double, 2, bg::cs::undefined> point; typedef
25 typedef bg::model::box<point> box;
26 typedef bg::model::segment<point> segment;
27 typedef bg::model::linestring<point> linestring;
28 typedef bg::model::ring<point> ring;
29 typedef bg::model::polygon<point> polygon;
32 typedef bg::model::multi_point<point> multi_point;
36 pt = point(0, 0); in geom()
37 b = box(point(-1, -1), point(1, 1)); in geom()
38 s = segment(point(0, 0), point(1, 1)); in geom()
[all …]
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafhints.c345 AF_Point point = hints->points + point_idx; in af_get_segment_index() local
355 if ( point >= segment->first && point <= segment->last ) in af_get_segment_index()
365 if ( point == p ) in af_get_segment_index()
422 AF_Point point; in af_glyph_hints_dump_points() local
439 for ( point = points; point < limit; point++ ) in af_glyph_hints_dump_points()
441 int point_idx = AF_INDEX_NUM( point, points ); in af_glyph_hints_dump_points()
450 if ( contour < climit && *contour == point ) in af_glyph_hints_dump_points()
466 ( point->flags & AF_FLAG_NEAR ) in af_glyph_hints_dump_points()
468 : ( point->flags & AF_FLAG_WEAK_INTERPOLATION ) in af_glyph_hints_dump_points()
472 point->fx, in af_glyph_hints_dump_points()
[all …]
/third_party/flutter/skia/third_party/externals/freetype/src/pshinter/
Dpshalgo.c1085 PSH_Point point = glyph->points; in psh_glyph_load_points() local
1089 for ( ; count > 0; count--, point++, vec++ ) in psh_glyph_load_points()
1091 point->flags2 = 0; in psh_glyph_load_points()
1092 point->hint = NULL; in psh_glyph_load_points()
1095 point->org_u = vec->x; in psh_glyph_load_points()
1096 point->org_v = vec->y; in psh_glyph_load_points()
1100 point->org_u = vec->y; in psh_glyph_load_points()
1101 point->org_v = vec->x; in psh_glyph_load_points()
1105 point->org_x = vec->x; in psh_glyph_load_points()
1106 point->org_y = vec->y; in psh_glyph_load_points()
[all …]
/third_party/freetype/src/pshinter/
Dpshalgo.c1084 PSH_Point point = glyph->points; in psh_glyph_load_points() local
1088 for ( ; count > 0; count--, point++, vec++ ) in psh_glyph_load_points()
1090 point->flags2 = 0; in psh_glyph_load_points()
1091 point->hint = NULL; in psh_glyph_load_points()
1094 point->org_u = vec->x; in psh_glyph_load_points()
1095 point->org_v = vec->y; in psh_glyph_load_points()
1099 point->org_u = vec->y; in psh_glyph_load_points()
1100 point->org_v = vec->x; in psh_glyph_load_points()
1104 point->org_x = vec->x; in psh_glyph_load_points()
1105 point->org_y = vec->y; in psh_glyph_load_points()
[all …]
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshalgo.c1085 PSH_Point point = glyph->points; in psh_glyph_load_points() local
1089 for ( ; count > 0; count--, point++, vec++ ) in psh_glyph_load_points()
1091 point->flags2 = 0; in psh_glyph_load_points()
1092 point->hint = NULL; in psh_glyph_load_points()
1095 point->org_u = vec->x; in psh_glyph_load_points()
1096 point->org_v = vec->y; in psh_glyph_load_points()
1100 point->org_u = vec->y; in psh_glyph_load_points()
1101 point->org_v = vec->x; in psh_glyph_load_points()
1105 point->org_x = vec->x; in psh_glyph_load_points()
1106 point->org_y = vec->y; in psh_glyph_load_points()
[all …]
/third_party/boost/libs/fusion/test/sequence/
Dadapt_assoc_adt_named.cpp29 class point class
33 point() : x(0), y(0) {} in point() function in ns::point
34 point(int in_x, int in_y) : x(in_x), y(in_y) {} in point() function in ns::point
51 ns::point,
52 point,
60 ns::point,
61 point,
82 BOOST_MPL_ASSERT((traits::is_view<adapted::point>)); in main()
83 BOOST_STATIC_ASSERT(traits::is_view<adapted::point>::value); in main()
84 ns::point basep(123, 456); in main()
[all …]
Dadapt_assoc_struct_named.cpp27 struct point struct
38 ns::point, argument
39 point,
47 ns::point,
48 point,
68 BOOST_MPL_ASSERT((traits::is_view<adapted::point>)); in main()
69 BOOST_STATIC_ASSERT(traits::is_view<adapted::point>::value); in main()
70 ns::point basep = {123, 456}; in main()
71 adapted::point p(basep); in main()
82 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<adapted::point>::value == 2); in main()
[all …]
Dadapt_assoc_struct.cpp48 struct point struct
58 ns::point, argument
66 ns::point,
88 BOOST_MPL_ASSERT_NOT((traits::is_view<ns::point>)); in main()
89 BOOST_STATIC_ASSERT(!traits::is_view<ns::point>::value); in main()
90 ns::point p = {123, 456, 789}; in main()
103 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<ns::point>::value == 3); in main()
104 BOOST_STATIC_ASSERT(!boost::fusion::result_of::empty<ns::point>::value); in main()
112 ns::point v2 = {5, 3, 3}; in main()
126 ns::point p = {5, 3, 3}; in main()
[all …]
/third_party/typescript/tests/baselines/reference/
DmergedDeclarations1.types9 function point(x: number, y: number): Point {
10 >point : typeof point
21 module point {
22 >point : typeof point
24 export var origin = point(0, 0);
26 >point(0, 0) : Point
27 >point : typeof point
54 var p1 = point(0, 0);
56 >point(0, 0) : Point
57 >point : typeof point
[all …]
DmergedDeclarations1.js6 function point(x: number, y: number): Point {
9 module point {
10 export var origin = point(0, 0);
15 var p1 = point(0, 0);
16 var p2 = point.origin;
17 var b = point.equals(p1, p2);
20 function point(x, y) { function
23 (function (point) { argument
24 point.origin = point(0, 0);
28 point.equals = equals;
[all …]
/third_party/boost/boost/geometry/srs/projections/impl/
Dpj_transform.hpp76 static inline type get(Point const& point) in get()
78 return geometry::get<2>(point); in get()
80 static inline void set(Point & point, type const& h) in set()
82 return geometry::set<2>(point, h); in set()
256 point_type & point = geometry::range::at(range, i); in pj_transform() local
257 set_z(point, get_z(point) * srcdefn.vto_meter); in pj_transform()
275 point_type & point = range::at(range, i); in pj_transform() local
276 if( ! is_invalid_point(point) ) in pj_transform()
278 set<0>(point, get<0>(point) * srcdefn.to_meter); in pj_transform()
279 set<1>(point, get<1>(point) * srcdefn.to_meter); in pj_transform()
[all …]
/third_party/boost/libs/log/example/doc/
Dextension_filter_parser.cpp36 struct point struct
40 point() : m_x(0.0f), m_y(0.0f) {} in point() argument
41 point(float x, float y) : m_x(x), m_y(y) {} in point() argument
44 bool operator== (point const& left, point const& right);
45 bool operator!= (point const& left, point const& right);
48 std::basic_ostream< CharT, TraitsT >& operator<< (std::basic_ostream< CharT, TraitsT >& strm, point
50 std::basic_istream< CharT, TraitsT >& operator>> (std::basic_istream< CharT, TraitsT >& strm, point
55 bool operator== (point const& left, point const& right) in operator ==()
61 bool operator!= (point const& left, point const& right) in operator !=()
67 std::basic_ostream< CharT, TraitsT >& operator<< (std::basic_ostream< CharT, TraitsT >& strm, point in operator <<()
[all …]
/third_party/boost/libs/geometry/test/algorithms/equals/
Dequals_on_spheroid.cpp163 test_point_point<bgm::point<int, 2, cs_type> >::apply("se"); in BOOST_AUTO_TEST_CASE()
164 test_point_point<bgm::point<double, 2, cs_type> >::apply("se"); in BOOST_AUTO_TEST_CASE()
165 test_point_point<bgm::point<long double, 2, cs_type> >::apply("se"); in BOOST_AUTO_TEST_CASE()
170 bgm::point<double, 2, cs_type>, bgm::point<int, 2, cs_type> in BOOST_AUTO_TEST_CASE()
175 bgm::point<double, 2, cs_type>, bgm::point<long double, 2, cs_type> in BOOST_AUTO_TEST_CASE()
179 test_point_point<bgm::point<ttmath_big, 2, cs_type> >::apply("se"); in BOOST_AUTO_TEST_CASE()
187 test_point_point<bgm::point<int, 3, cs_type> >::apply("seh"); in BOOST_AUTO_TEST_CASE()
188 test_point_point<bgm::point<double, 3, cs_type> >::apply("seh"); in BOOST_AUTO_TEST_CASE()
189 test_point_point<bgm::point<long double, 3, cs_type> >::apply("seh"); in BOOST_AUTO_TEST_CASE()
194 bgm::point<double, 3, cs_type>, bgm::point<int, 3, cs_type> in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/geometry/example/
D04_boost_example.cpp32 typedef model::d2::point_xy<double> point; in main() typedef
33 typedef model::polygon<point> polygon; in main()
34 typedef model::linestring<point> linestring; in main()
41 ls1 += point(1,2); in main()
42 ls1 += point(3,4), point(5,6), point(7,8); in main()
47 push_back(ls2)(point(1, 2))(point(3, 4)); in main()
51 linestring ls3 = list_of(point(1,2))(point(3,4)); in main()
56 push_back(ls4)(point(0, 0)).range(ls2).range(ls3); in main()
64 (point(0, 0)) in main()
65 (point(0, 2)) in main()
[all …]
/third_party/boost/libs/geometry/test/concepts/
Dpoint_well_formed_traits.cpp19 struct point struct
21 point(): x(), y() {} in point() function
28 struct tag<point> argument
34 struct coordinate_type<point>
40 struct coordinate_system<point>
46 struct dimension<point>
52 struct access<point, 0>
54 static float get(point const& p) in get()
59 static void set(point& p, float value) in set()
66 struct access<point, 1>
[all …]
Dpoint_with_incorrect_dimension.cpp23 struct point struct
25 point() : x(0), y(0) {} // initialize to suppress warnings in point() argument
31 template <> struct tag<point> { typedef point_tag type; }; argument
32 template <> struct coordinate_type<point> { typedef float type; };
33 template <> struct coordinate_system<point> { typedef bg::cs::cartesian type; };
34 template <> struct dimension<point> { enum { value = 3 }; };
36 template <> struct access<point, 0>
38 static float get(point const& p) { return p.x; } in get()
39 static void set(point& p, float value) { p.x = value; } in set()
42 template <> struct access<point, 1>
[all …]

12345678910>>...219