CircularTrip can be immediately extended to a higher dimensional space. Take
D space for example. The only difference is now CircularTrip
(Algorithm
) returns the cells intersected by the sphere of
radius
centered at
. Given a query
, CircularTrip is
invoked on the plane
and its results is
. Then, for each pair of cells in
intersected by the planes parallel to
the plane
, call CircularTrip with one of
them as
and half of their distance as radius to collect all the
satisfied cells. It is immediately verified that properties of CircularTrip in
2D are all retained.