MCPcopy Create free account
hub / github.com/Gecode/gecode / getExtentAtDepth

Method getExtentAtDepth

gecode/gist/visualnode.hpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 forceinline bool
97 Shape::getExtentAtDepth(int d, Extent& extent) {
98 if (d > depth())
99 return false;
100 extent = Extent(0,0);
101 for (int i=0; i <= d; i++) {
102 Extent currentExtent = (*this)[i];
103 extent.l += currentExtent.l;
104 extent.r += currentExtent.r;
105 }
106 return true;
107 }
108
109 forceinline void
110 Shape::computeBoundingBox(void) {

Callers 1

Calls 1

ExtentClass · 0.85

Tested by

no test coverage detected