* b is an array containing left max and right min values */
| 130 | * b is an array containing left max and right min values |
| 131 | */ |
| 132 | void MakeNode(const T& left, const T& d, const double b[2]) |
| 133 | { |
| 134 | this->Index = (d & 3) | (left << 2); |
| 135 | this->LeftMax = b[0]; |
| 136 | this->RightMin = b[1]; |
| 137 | } |
| 138 | void SetChildren(const T& left) |
| 139 | { |
| 140 | // In index 2 LSBs (Least Significant Bits) store the dimension. MSBs store the position |