ajouté interface textuelle
This commit is contained in:
@@ -62,6 +62,14 @@ inline bool operator==(const Position& left, const Position& right) {
|
||||
return (left.x == right.x) && (left.y == right.y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inequality operator, two positions aren't equal if their coordinates aren't
|
||||
* @return If the two positions aren't equals
|
||||
*/
|
||||
inline bool operator!=(const Position& left, const Position& right) {
|
||||
return (left.x != right.x) || (left.y != right.y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Stream output operator, adds the coordinates of the position to the stream
|
||||
* @return A reference to the output stream
|
||||
|
||||
Reference in New Issue
Block a user