Lines Matching defs:rect
19 * SIMD rect implementation. Vales are stored internally in the form: [left, top, -right, -bot].
21 * Some operations (e.g., intersect, inset) may return a negative or empty rect
24 * Operations on a rect that is either negative or empty, while well-defined, might not give the
62 AI bool operator==(Rect rect) const { return all(fVals == rect.fVals); }
63 AI bool operator!=(Rect rect) const { return any(fVals != rect.fVals); }
108 // A rect stored in a complementary form of: [right, bottom, -left, -top]. Store a local
111 AI ComplementRect(Rect rect) : fVals(-rect.fVals.zwxy()) {}
116 AI bool contains(Rect rect) const { return all(fVals <= rect.fVals); }
118 // Some operations may return a negative or empty rect. Operations on a rect that either is
128 AI Rect makeJoin(Rect rect) const { return min(fVals, rect.fVals); }
129 AI Rect makeIntersect(Rect rect) const { return max(fVals, rect.fVals); }
139 AI Rect& join(Rect rect) { return *this = this->makeJoin(rect); }
140 AI Rect& intersect(Rect rect) { return *this = this->makeIntersect(rect); }