mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-09 11:12:21 +00:00
[strategies] Remove inconsistent (and for now not needed) operators in projected_point_ax_result
This commit is contained in:
@@ -286,37 +286,11 @@ struct projected_point_ax_result
|
||||
|
||||
T atd, xtd;
|
||||
|
||||
// ^....
|
||||
// |....
|
||||
// +--->
|
||||
friend bool operator<(projected_point_ax_result const& left,
|
||||
projected_point_ax_result const& right)
|
||||
{
|
||||
return left.atd < right.atd && left.xtd < right.xtd;
|
||||
}
|
||||
|
||||
// .........
|
||||
// .........
|
||||
// ...
|
||||
// ^ ...
|
||||
// | ...
|
||||
// +---> ...
|
||||
friend bool operator>(projected_point_ax_result const& left,
|
||||
projected_point_ax_result const& right)
|
||||
{
|
||||
return left.atd > right.atd || left.xtd > right.xtd;
|
||||
}
|
||||
|
||||
// ......
|
||||
// ^ .
|
||||
// | .
|
||||
// +--->.
|
||||
friend bool operator==(projected_point_ax_result const& left,
|
||||
projected_point_ax_result const& right)
|
||||
{
|
||||
return ( left.atd == right.atd && left.xtd <= right.xtd )
|
||||
|| ( left.atd <= right.atd && left.xtd == right.xtd );
|
||||
}
|
||||
};
|
||||
|
||||
// This strategy returns 2-component Point/Segment distance.
|
||||
|
||||
Reference in New Issue
Block a user