Package org.apache.calcite.runtime
Class HilbertCurve2D
java.lang.Object
org.apache.calcite.runtime.HilbertCurve2D
- All Implemented Interfaces:
SpaceFillingCurve2D
2-dimensional Hilbert space-filling curve.
Includes code from LocationTech SFCurve, Copyright (c) 2015 Azavea.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.runtime.SpaceFillingCurve2D
SpaceFillingCurve2D.AbstractRange, SpaceFillingCurve2D.CoveredRange, SpaceFillingCurve2D.IndexRange, SpaceFillingCurve2D.IndexRangeOrdering, SpaceFillingCurve2D.IndexRanges, SpaceFillingCurve2D.IndexRangeTuple, SpaceFillingCurve2D.OverlappingRange, SpaceFillingCurve2D.Point, SpaceFillingCurve2D.RangeComputeHints
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
toIndex
(double x, double y) toPoint
(long i) toRanges
(double xMin, double yMin, double xMax, double yMax, SpaceFillingCurve2D.RangeComputeHints hints)
-
Constructor Details
-
HilbertCurve2D
public HilbertCurve2D(int resolution)
-
-
Method Details
-
toIndex
public long toIndex(double x, double y) - Specified by:
toIndex
in interfaceSpaceFillingCurve2D
-
toPoint
- Specified by:
toPoint
in interfaceSpaceFillingCurve2D
-
toRanges
public List<SpaceFillingCurve2D.IndexRange> toRanges(double xMin, double yMin, double xMax, double yMax, SpaceFillingCurve2D.RangeComputeHints hints) - Specified by:
toRanges
in interfaceSpaceFillingCurve2D
-