| 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) { |
no test coverage detected