Commit Graph

8536 Commits

Author SHA1 Message Date
Menelaos Karavelas
7b4798231e [extensions][ttmath] add missing arithmetic operators for ttmath_big:
unary and binary +, binary *, binary /;
these operators are needed so that the result of arithmetic operations
on objects of type ttmath_big is also of type ttmath_big (instead of
ttmath:Big<1,4> which is the base class for ttmath_big);
2015-03-14 01:51:04 +02:00
Menelaos Karavelas
0570471cf8 [test][algorithms][equals][spheroid] add unit test to Jamfile 2015-03-14 01:28:23 +02:00
Menelaos Karavelas
042e907fcb [test][algorithms][equals] add unit test for testing equality of points
and segments on a spheroid (also tests disjoint(point, point) for points
on a spheroid)
2015-03-14 01:25:03 +02:00
Menelaos Karavelas
ac3dd83744 [util][math] function to normalize coordinates on a spheroid:
* the normalized longitude lies in the interval (-180, 180] (in degrees)
* the normalized latitude lies in the interval [-90, 90] (in degrees)
2015-03-14 01:22:23 +02:00
Menelaos Karavelas
e6275f7178 [algorithms][disjoint][spheroid] implement disjoint(point, point) for
points on a spheroid (applicable to spherical equatorial and geographic
coordinate systems)
2015-03-14 01:20:38 +02:00
Menelaos Karavelas
5de5e93780 [util][math][fmod] add support for calls to fmod: for fundamental
floating-point numbers it calls std::fmod; for fundamental integral
numbers it calls operator%; for user defined number types the free
function fmod is called (lookup is activated in the global namespace,
the std namespace and the type's namespace);
2015-03-13 12:31:07 +02:00
Menelaos Karavelas
4940d8d669 [extensions][ttmath] add support for fmod free function 2015-03-13 12:22:57 +02:00
Adam Wulkiewicz
ec6f9148cd [strategies][cart_intersect] Compare ratios denominators consistently.
Compare both ratios' potential denominators, corresponding to both
segments. Furthermore, take into account the machine epsilon.
2015-03-12 23:03:27 +01:00
Adam Wulkiewicz
e5c7ac09c9 Merge pull request #265 from mkaravel/fix/remove_deprecated_include_paths_part2
Fix: remove deprecated include paths - Part II
2015-03-12 14:47:39 +01:00
Adam Wulkiewicz
d22f26f425 Merge pull request #266 from mkaravel/fix/support_status_for_num_points
Remove deprecated include paths - Part III & fix support status for num_points
2015-03-12 13:51:32 +01:00
Menelaos Karavelas
4d544287a3 [test][algorithms][set operations] update deprecated includes referring to
the include/boost/geometry/multi/ directory
2015-03-12 10:47:28 +02:00
Menelaos Karavelas
742d4090d8 [doc][tools][support status] remove deprecated includes referring to the
include/boost/geometry/multi/ directory;
fix call for num_points: dispatch::num_points<> takes a second boolean argument
with no default value, which was not accounted for by support status;
2015-03-12 10:35:33 +02:00
Menelaos Karavelas
bfcd9594d0 [geometry][multi] make boost/geometry/multi/multi.hpp include boost/geometry/geometry.hpp;
file kept for now for backward compatibility;
2015-03-12 10:32:50 +02:00
Menelaos Karavelas
38c2869fd3 [test][algorithms][within] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 10:19:14 +02:00
Menelaos Karavelas
4e3a07df4f [doc][doxygen_xml2qbk] remove multi/multi.hpp from convenience headers 2015-03-12 10:04:44 +02:00
Menelaos Karavelas
5b09619b4c [doc][doxygen_input] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 10:03:04 +02:00
Menelaos Karavelas
821c9ef172 [doc][Doxyfile] remove deprecated multi/ directories from input path 2015-03-12 10:01:24 +02:00
Menelaos Karavelas
3f2c06c9dd [test] remove deprecated include referring to the
include/boost/geometry/multi/ directory
2015-03-12 02:21:54 +02:00
Menelaos Karavelas
63ff5bde6a [test][iterators] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 02:20:47 +02:00
Menelaos Karavelas
63e87041da [test][io] remove deprecated includes referring to the
include/boost/geometry/multi/ directory; also cleanup includes a bit;
2015-03-12 02:19:42 +02:00
Menelaos Karavelas
4e8abc3f80 [test][robustness] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 02:15:11 +02:00
Menelaos Karavelas
6f0b6a19e2 [test][geometries] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 02:11:28 +02:00
Menelaos Karavelas
29c460b546 [test][algorithms] remove deprecated includes referring to the
include/boost/geometry/multi/ directory; polish and simplify some includes;
2015-03-12 02:10:14 +02:00
Menelaos Karavelas
35a85e671b [geometry] remove deprecated include referring to the
include/boost/geometry/multi/ directory
2015-03-12 00:23:07 +02:00
Menelaos Karavelas
cdb25bc741 [io][svg_mapper] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 00:22:27 +02:00
Menelaos Karavelas
8e36f8f873 [algorithms] remove deprecated includes referring to the
include/boost/geometry/multi/ directory
2015-03-12 00:20:51 +02:00
Adam Wulkiewicz
422a093ae8 Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-03-11 19:52:04 +01:00
Adam Wulkiewicz
d8263e54f2 [test][get_turns] Add tests failing for MinGW guarded with #ifdef. 2015-03-11 19:51:48 +01:00
Adam Wulkiewicz
8025793aa4 Merge pull request #263 from mkaravel/fix/geometry_test_common
Fix: allow geometry test common to be included in all unit tests
2015-03-11 19:48:56 +01:00
Barend Gehrels
3077cc89b9 Merge branch 'develop' of github.com:boostorg/geometry into develop 2015-03-11 19:07:32 +01:00
Barend Gehrels
65f57b1947 [test] move as_range to algorithms/detail 2015-03-11 19:07:16 +01:00
Adam Wulkiewicz
4a58863dcc Merge pull request #262 from mkaravel/fix/remove_obsolete_includes
Fix: remove obsolete includes referring to the "multi"directory
2015-03-11 19:05:05 +01:00
Menelaos Karavelas
09a335d5ea [test][geometry] guard the inclusion of Boost.Test related files with
the BOOST_TEST_MODULE macro; this way geometry_test_common.hpp can be included
in tests that proceed with unit testing using other Boost.Test utilities
(like some of the distance and set-ops tests, validity and simplicity)
2015-03-11 19:54:57 +02:00
Menelaos Karavelas
099388c5ae [test][algorithms][equals] remove obsolete includes referring to the
"multi" directory
2015-03-11 19:44:39 +02:00
Adam Wulkiewicz
b42d70f49e Merge pull request #260 from mkaravel/feature/distance
Distance: re-factor, polish and add new test cases
2015-03-11 15:23:06 +01:00
Menelaos Karavelas
556637448f [test][algorithms][distance] add test case where distance computed is a NaN 2015-03-11 10:51:03 +02:00
Menelaos Karavelas
a33fb12f2e [test][algorithms][distance] add test case where distance overflows 2015-03-11 10:50:41 +02:00
Menelaos Karavelas
c519fb80e3 [test][algorithms][distance] remove last argument in tester calls (not needed) 2015-03-11 10:49:55 +02:00
Menelaos Karavelas
bb25a857ee [test][algorithms][distance] update copyright year 2015-03-11 10:49:18 +02:00
Menelaos Karavelas
c8d6269b09 [test][algorithms][distance] polish and update code; re-factor some parts;
allow testing against test cases where distance computed is not a finite
floating-point value;
2015-03-11 10:48:46 +02:00
Adam Wulkiewicz
e5c40ca188 [buffer] Fix unused variable MSVC warning in analyse_turn_wrt_point_piece. 2015-03-11 03:56:04 +01:00
Adam Wulkiewicz
6828fd5bda [policies] Fix unused parameter warnings in direction policy. 2015-03-11 03:54:42 +01:00
Menelaos Karavelas
9c860772ff [test][algorithms][set operations] update Jamfiles with the new unit tests 2015-03-10 16:52:14 +02:00
Menelaos Karavelas
a4b062583c [test][algorithms][set operations] add unit tests for intersection and difference
for pointlike/linear geometries
2015-03-10 16:50:38 +02:00
Menelaos Karavelas
bda35568f0 [algorithms][overlay] implement intersection and difference for
pointlike/linear geometries
2015-03-10 16:49:35 +02:00
Menelaos Karavelas
ec5efe3799 [test][algorithms][set operations][pointlike] polish tests of set operations
for pointlike/pointlike geometries (make the case ID the first argument of the tester);
modify the common set operations test code so that it can be applied to set operations
of pointlike/linear geometries as well;
2015-03-10 16:04:31 +02:00
Menelaos Karavelas
eb763405bc [doc][algorithms][status][release notes] update disjoint status;
add newly supported combinations for disjoint in release notes (for 1.59);
2015-03-10 01:35:34 +02:00
Menelaos Karavelas
442223945f [test][algorithms][disjoint] enable test cases for multipoint/linear geometries;
modify existing duplicate test case and add new test cases for multipoint/linear;
2015-03-09 17:46:32 +02:00
Menelaos Karavelas
84f0e306d9 [algorithms][disjoint] apply coding rules; (add space between "template" and "<");
implement disjoint(multipoint, linear) using partition;
2015-03-09 17:45:14 +02:00
Menelaos Karavelas
3bc49457d6 [algorithms][disjoint] remove duplicate code; move template parameters inside classes
when possible; re-arrange code a bit;
2015-03-09 17:43:51 +02:00