inline bool operator !=(const Rect<T> & r) const;
The operator != function determines the inequality of two rectangles by comparing each component. The following expression is used to determine the result:
(r1.x1 != r2.x1) && (r1.y1 != r2.y1) && (r1.x2 != r2.x2) && (r1.y2 != r2.y2)
Parameters |
Description |
const Rect<T> & r |
The second of two passed rectangles whose x1, y1, x2, and y2 components are compared to those of a first rectangle to determine inequality. |
A Boolean value of 1 (true) if the two rectangles are not equal and 0 (false) if they are.