MCPcopy Create free account
hub / github.com/Snapchat/Valdi / intersects

Method intersects

snap_drawing/src/snap_drawing/cpp/Utils/Geometry.cpp:62–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool Rect::intersects(const Rect& other) const {
63 // Use Skia's exact floating-point comparison for general intersection checks.
64 // This is important for Compositor plane optimization logic.
65 return getSkValue().intersects(other.getSkValue());
66}
67
68bool Rect::intersectsWithTolerance(const Rect& other) const {
69 // Use epsilon-based comparison for damage rect merging.

Callers 1

Calls 1

getSkValueMethod · 0.80

Tested by

no test coverage detected