SpaceFillingCurve
Description
Implements a bijective mapping from two- or three-dimensional map coordinates onto one-dimensional indices using hilbert space-filling curves.
The static Map2D
methods provides a bijective mapping from two-dimensional coordinates to a one-dimensional index:
(X,Y) => I
where X
and Y
are in the range [0..MaxCoord2D] and I
is in the range [0..MaxIndex2D].
The static Map3D
methods provides a bijective mapping from three-dimensional coordinates to a one-dimensional index:
(X,Y,Z) => I
where X
, Y
and Z
are in the range [0..MaxCoord3D] and I
is in the range [0..MaxIndex3D].
Public / Methods
Map2D
2 overloads
Maps the given two-dimensional coordinates to an one-dimensional index value.
Provides a bijective mapping from two-dimensional coordinates to a one-dimensional index:
(X,Y) => I
where X
and Y
are in the range [0..MaxCoord2D] and I
is in the range [0..MaxIndex2D].
- See also
Maps the given two-dimensional coordinates to an one-dimensional index value.
Provides a bijective mapping from two-dimensional coordinates to a one-dimensional index:
(X,Y) => I
where X
and Y
are in the range [0..MaxCoord2D] and I
is in the range [0..MaxIndex2D].
- See also
Map3D
2 overloads
Maps the given three-dimensional coordinates to an one-dimensional index value.
Provides a bijective mapping from three-dimensional coordinates to a one-dimensional index:
(X,Y,Z) => I
where X
, Y
and Z
are in the range [0..MaxCoord3D] and I
is in the range [0..MaxIndex3D].
- See also
Maps the given three-dimensional coordinates to an one-dimensional index value.
Provides a bijective mapping from three-dimensional coordinates to a one-dimensional index:
(X,Y,Z) => I
where X
, Y
and Z
are in the range [0..MaxCoord3D] and I
is in the range [0..MaxIndex3D].
- See also
Unmap2D
Unmaps the given linear index value to a two-dimensional set of map coordinates.
Provides a bijective mapping from a one-dimensional index to two-dimensional coordinates:
I => (X,Y)
where X
and Y
are in the range [0..MaxCoord2D] and I
is in the range [0..MaxIndex2D].