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

Method intersection

snap_drawing/src/snap_drawing/cpp/Utils/Path.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107Path Path::intersection(const Path& other) const {
108 Path output;
109 Op(getSkValue(), other.getSkValue(), kIntersect_SkPathOp, &output.getSkValue());
110
111 output.getSkValue().setFillType(getSkValue().getFillType());
112 return output;
113}
114
115std::optional<Rect> Path::getBounds() const {
116 if (isEmpty()) {

Callers 4

updateClipMethod · 0.45
onDrawMethod · 0.45
onDrawMethod · 0.45

Calls 1

getSkValueMethod · 0.80

Tested by

no test coverage detected