public interface FillingCurve2D
Modifier and Type | Method and Description |
---|---|
long |
hash2i0(long hash)
Special case of
hash2ij(long) in which the discretized coordinate along
the vertical axis equals zero. |
long |
hash2ij(long hash)
Transforms the given space filling curve index (or hash value) into
a single value from which it is straightforward to extract the
associated 2d-coordinates using methods
ij2i(long) and
ij2j(long) . |
long |
i02hash(int i)
Special case of
ij2hash(int, int) in which the discretized coordinate along
the vertical axis equals zero. |
long |
ij2hash(int i,
int j)
Transforms coordinates in a discretized 2d-plane into a space
filling curve index.
|
int |
ij2i(long ij)
Extract the discretized horizontal coordinates from the result of the method
hash2ij(long) . |
int |
ij2j(long ij)
Extract the discretized vertical coordinates from the result of the method
hash2ij(long) . |
long |
xy2hash(double x,
double y)
The default implementation (not implemented to stay compatible with Java Version < 8)
should be:
return ij2hash((int) x, (int) y) . |
long xy2hash(double x, double y)
return ij2hash((int) x, (int) y)
.x
- coordinate along the horizontal axisy
- coordinate along the vertical axislong ij2hash(int i, int j)
i
- discretized coordinate along the horizontal axisj
- discretized coordinate along the vertical axislong i02hash(int i)
ij2hash(int, int)
in which the discretized coordinate along
the vertical axis equals zero.i
- discretized coordinate along the horizontal axislong hash2ij(long hash)
ij2i(long)
and
ij2j(long)
.hash
- the space filling curve index (or hash value)ij2i(long)
and ij2j(long)
.long hash2i0(long hash)
hash2ij(long)
in which the discretized coordinate along
the vertical axis equals zero.hash
- the space filling curve index (or hash value)ij2i(long)
.int ij2i(long ij)
hash2ij(long)
.ij
- result of the method hash2ij(long)
ij
int ij2j(long ij)
hash2ij(long)
.ij
- result of the method hash2ij(long)
ij
Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.