[strategies] Remove inconsistent (and for now not needed) operators in projected_point_ax_result

This commit is contained in:
Adam Wulkiewicz
2014-07-04 19:04:04 +02:00
parent 3855610e05
commit 0170ebe9ca

View File

@@ -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.