Menelaos Karavelas
ca74329345
[algorithms][disjoint] do not treat poles in a special way: normalization
...
of spherical coordinates takes care of that
2015-03-31 13:22:58 +03:00
Menelaos Karavelas
9eec41f53d
[util][math] normalize the spherical coordinates for the north and south poles by
...
setting the longitude to zero; this way equality of points on the sphere/spheroid
amounts to equality of their normalized coordinates (for all points on the sphere/spheroid,
including the poles)
2015-03-31 13:20:34 +03:00
Menelaos Karavelas
449e381fda
[util][math][spheroid] replace calls to math::fmod() by calls to math::mod()
2015-03-16 11:55:47 +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
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
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
Adam Wulkiewicz
666837bcb9
[algorithms] Fix the type of returned Range/Ring in sub_range(Polygon).
2015-03-09 16:05:29 +01:00
Adam Wulkiewicz
e6d4997061
Merge pull request #253 from sdebionne/fix/range_test
...
Add tests for iterator_range<const pointer> and pair<const pointer>
2015-03-09 13:01:18 +01:00
Adam Wulkiewicz
731ea108d7
Merge pull request #252 from sdebionne/fix/range_reference
...
[range] Use range_reference
2015-03-09 12:58:59 +01:00
Adam Wulkiewicz
058e709f39
Merge pull request #251 from mkaravel/doc/updates_for_1_58
...
Doc updates for boost 1.58
2015-03-09 12:51:54 +01:00
Samuel Debionne
e969a4c33a
[test][util][range] Add tests for const pointer
...
Add tests for range iterator_range<const pointer> and pair<const
pointer>
2015-03-09 11:28:31 +01:00
Samuel Debionne
d7aae45daf
[util][range] Use range_reference
...
Use range_reference to determine the return type of boost::at,
boost::front and boost::back.
2015-03-09 09:52:11 +01:00
Menelaos Karavelas
6d4624d39a
[doc][algorithms][disjoint] update status for disjoint; update release notes
...
to indicate the new geometry combinations supported by disjoint;
2015-03-09 08:42:03 +02:00
Barend Gehrels
89b6fc4153
Merge pull request #250 from mkaravel/fix/optimize_num_points_expression
...
[strategies][cartesian][buffer][join_round] optimize expression
2015-03-08 20:05:13 +01:00
Menelaos Karavelas
b3b95ae92b
[strategies][cartesian][buffer][join_round] protect std::max with parentheses
2015-03-08 20:56:02 +02:00
Menelaos Karavelas
ca45ee76ac
[strategies][cartesian][buffer][join_round] optimize expression
...
calculating number of interior points
2015-03-08 20:11:53 +02:00
Barend Gehrels
efe9a9b7b8
Merge branch 'develop' of github.com:boostorg/geometry into develop
...
Conflicts:
test/algorithms/buffer/polygon_buffer.cpp
2015-03-08 18:20:03 +01:00
Barend Gehrels
7942ece158
[buffer][test] remove redundant decimals
2015-03-08 18:16:28 +01:00
Barend Gehrels
64ee58ed46
[buffer] Fix calculation of the number of points. For an angle of 125 or more,
...
no points in between were generated, which was erroneous.
Thanks to Menelaos for spotting and Adam for the calculation
This changes some of the unit test results, because in some cases a point in between
is generated now, creating a larger polygon
2015-03-08 18:08:43 +01:00
Barend Gehrels
46b781d0a7
[buffer] Fix calculation of the number of points. For an angle of 125 or more,
...
no points in between were generated, which was erroneous.
Thanks to Menelaos for spotting and Adam for the calculation
This changes some of the unit test results, because in some cases a point in between
is generated now, creating a larger polygon
2015-03-08 18:06:58 +01:00
Adam Wulkiewicz
a3db6b2ad1
Merge pull request #246 from mkaravel/fix/sqrt_for_32bit_platforms
...
Workaround for sqrt for some 32-bit platforms
2015-03-08 15:14:30 +01:00
Barend Gehrels
4e6a319fdb
Merge pull request #248 from mkaravel/feature/simplify_detail_not
...
Simplify detail::not_
2015-03-08 15:01:28 +01:00
Adam Wulkiewicz
d99922ffad
Merge pull request #249 from mkaravel/fix/rename_variable
...
Fix: rename local variable
2015-03-08 14:09:23 +01:00
Menelaos Karavelas
a3012c4beb
[strategies][cartesian][buffer][join_round] rename local variable so that it is more descriptive
2015-03-08 12:54:19 +02:00
Menelaos Karavelas
4fcf879b25
[algorithms][detail][not] modify the implementation of detail::not_ by moving
...
the geometry template parameters inside the class; this way it is simpler to
use detail::not_ as it is not required to specify the geometries;
2015-03-08 11:42:45 +02:00
Adam Wulkiewicz
8a90a0f4af
Merge pull request #247 from mkaravel/fix/apply_coding_rules
...
[algorithms][is_valid] apply coding rules (space after operator !)
2015-03-07 19:16:47 +01:00
Menelaos Karavelas
3312f4a03d
[algorithms][is_valid] apply coding rules (space after operator !)
2015-03-07 18:13:12 +02:00
Menelaos Karavelas
fc257347e2
[util][math] add comments at end of #ifdef BOOST_GEOMETRY_SQRT_CHECK_FINITENESS/#endif block
2015-03-07 16:34:19 +02:00
Menelaos Karavelas
0a6e1a6829
[util][math] guard inclusion of fpclassify.hpp by the macro
...
BOOST_GEOMETRY_SQRT_CHECK_FINITENESS
2015-03-07 09:33:45 +02:00