Inherits skgpu::graphite::IntersectionTree::Node.
Definition at line 21 of file IntersectionTree.cpp.
◆ TreeNode()
◆ addNonIntersecting()
Definition at line 37 of file IntersectionTree.cpp.
37 {
38 if (GetLoVal(rect) < fSplitCoord) {
39 fLo = fLo->addNonIntersecting(rect, arena);
40 }
41 if (GetHiVal(rect) > fSplitCoord) {
42 fHi = fHi->addNonIntersecting(rect, arena);
43 }
44 return this;
45 }
◆ intersects()
Definition at line 27 of file IntersectionTree.cpp.
27 {
28 if (GetLoVal(rect) < fSplitCoord && fLo->intersects(rect)) {
29 return true;
30 }
31 if (GetHiVal(rect) > fSplitCoord && fHi->intersects(rect)) {
32 return true;
33 }
34 return false;
35 }
The documentation for this class was generated from the following file: