MCPcopy Create free account
hub / github.com/AccessKit/accesskit / union

Method union

common/src/geometry.rs:527–534  ·  view source on GitHub ↗
(&self, other: Rect)

Source from the content-addressed store, hash-verified

525 /// Results are valid only if width and height are non-negative.
526 #[inline]
527 pub fn union(&self, other: Rect) -> Rect {
528 Rect::new(
529 self.x0.min(other.x0),
530 self.y0.min(other.y0),
531 self.x1.max(other.x1),
532 self.y1.max(other.y1),
533 )
534 }
535
536 /// Compute the union with one point.
537 ///

Callers 2

transform_rect_bboxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected