-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1091 from vissarion/fix/custom_point_issue
Fix mutable point issue and typos in boundary_checker.
- Loading branch information
Showing
5 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,4 @@ namespace boost { namespace geometry { namespace traits { | |
|
||
}}} | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Boost.Geometry | ||
|
||
// Copyright (c) 2022 Oracle and/or its affiliates. | ||
|
||
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle | ||
|
||
// Use, modification and distribution is subject to the Boost Software License, | ||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/geometry/geometries/geometries.hpp> | ||
|
||
struct custom_cartesian_point { | ||
double x, y; | ||
custom_cartesian_point(double x = 0, double y = 0) : x(x), y(y) {} | ||
}; | ||
|
||
BOOST_GEOMETRY_REGISTER_POINT_2D(custom_cartesian_point, double, | ||
boost::geometry::cs::cartesian, x, y); | ||
|
||
using custom_cartesian_line = boost::geometry::model::linestring<custom_cartesian_point>; | ||
using custom_cartesian_polygon = boost::geometry::model::polygon<custom_cartesian_point>; |