mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 21:44:04 +00:00
[strategies] Remove Geometry parameter from side in convex_hull strategies
This commit is contained in:
parent
0df77e40c9
commit
c79b9a60b7
@ -215,7 +215,7 @@ public:
|
|||||||
|
|
||||||
container_type lower_points, upper_points;
|
container_type lower_points, upper_points;
|
||||||
|
|
||||||
auto side_strategy = strategy.side(geometry);
|
auto side_strategy = strategy.side();
|
||||||
|
|
||||||
// Bounding left/right points
|
// Bounding left/right points
|
||||||
// Second pass, now that extremes are found, assign all points
|
// Second pass, now that extremes are found, assign all points
|
||||||
|
@ -25,8 +25,7 @@ template <typename CalculationType = void>
|
|||||||
class cartesian : strategies::detail::cartesian_base
|
class cartesian : strategies::detail::cartesian_base
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return strategy::side::side_robust<CalculationType>();
|
return strategy::side::side_robust<CalculationType>();
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,7 @@ public:
|
|||||||
: base_t(spheroid)
|
: base_t(spheroid)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return strategy::side::geographic
|
return strategy::side::geographic
|
||||||
<
|
<
|
||||||
|
@ -30,8 +30,7 @@ template
|
|||||||
class spherical : strategies::detail::spherical_base<RadiusTypeOrSphere>
|
class spherical : strategies::detail::spherical_base<RadiusTypeOrSphere>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return strategy::side::spherical_side_formula<CalculationType>();
|
return strategy::side::spherical_side_formula<CalculationType>();
|
||||||
}
|
}
|
||||||
|
@ -40,8 +40,7 @@
|
|||||||
|
|
||||||
struct robust_cartesian : boost::geometry::strategies::detail::cartesian_base
|
struct robust_cartesian : boost::geometry::strategies::detail::cartesian_base
|
||||||
{
|
{
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return boost::geometry::strategy::side::side_robust<>();
|
return boost::geometry::strategy::side::side_robust<>();
|
||||||
}
|
}
|
||||||
@ -49,8 +48,7 @@ struct robust_cartesian : boost::geometry::strategies::detail::cartesian_base
|
|||||||
|
|
||||||
struct non_robust_cartesian_fast : boost::geometry::strategies::detail::cartesian_base
|
struct non_robust_cartesian_fast : boost::geometry::strategies::detail::cartesian_base
|
||||||
{
|
{
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return boost::geometry::strategy::side::side_non_robust<>();
|
return boost::geometry::strategy::side::side_non_robust<>();
|
||||||
}
|
}
|
||||||
@ -58,8 +56,7 @@ struct non_robust_cartesian_fast : boost::geometry::strategies::detail::cartesia
|
|||||||
|
|
||||||
struct non_robust_cartesian_sbt : boost::geometry::strategies::detail::cartesian_base
|
struct non_robust_cartesian_sbt : boost::geometry::strategies::detail::cartesian_base
|
||||||
{
|
{
|
||||||
template <typename Geometry>
|
static auto side()
|
||||||
static auto side(Geometry const&)
|
|
||||||
{
|
{
|
||||||
return boost::geometry::strategy::side::side_by_triangle<>();
|
return boost::geometry::strategy::side::side_by_triangle<>();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user