Index - All Packages - All Categories - All Classes
Class GenericCrossRegion
Represents a region as a two-dimensional array of crosses of subregions.
Was NOTA.TYPE but that obstructed compilation.
I think this might work better if the array is lexically sorted, but I am not sure there is any meaningful way to do so. Thus there is no sorting assumed in the algorithms, although the protocol may occasionally suggest that there might be.
Eventually this implementation may save space by using nil to represent repetitions of a sub region such that
fetchBoxProjection (box, dim) == nil
only if
box > 0
&& boxProjection (box, dim)->isEqual (boxProjection (box - 1, dim))
&& (dim == 0
|| fetchBoxProjection (box, dim - 1) == nil)
Package: Udanax-Gold
All Superclasses: Object Heaper XnRegion CrossRegion
Protocols: Object
Categories: Xanadu-Spaces-Cross