Home | History | Annotate | Download | only in geometry

Lines Matching defs:origin

44   constexpr Rect(const Point& origin, const Size& size)
45 : origin_(origin),
46 size_(GetClampedValue(origin.x(), size.width()),
47 GetClampedValue(origin.y(), size.height())) {}
83 constexpr const Point& origin() const { return origin_; }
84 void set_origin(const Point& origin) {
85 origin_ = origin;
140 // A rect is less than another rect if its origin is less than
141 // the other rect's origin. If the origins are equal, then the
142 // shortest rect is less than the other. If the origin and the
229 // This returns the width given an origin and a width.
232 static constexpr int GetClampedValue(int origin, int size) {
233 return AddWouldOverflow(origin, size)
234 ? std::numeric_limits<int>::max() - origin
240 return lhs.origin() == rhs.origin() && lhs.size() == rhs.size();