Class: Geospatial::HilbertIndex
Overview
Represents an index on the hilbert curve.
Instance Attribute Summary
Attributes inherited from Index
Instance Method Summary collapse
Methods inherited from Index
#&, #bit_length, #eql?, from_integral, #hash, #initialize, #inspect, #to_i
Constructor Details
This class inherits a constructor from Geospatial::Index
Instance Method Details
#to_ordinal ⇒ Object
69 70 71 |
# File 'lib/geospatial/index.rb', line 69 def to_ordinal OrdinalIndex.new(Hilbert.unmap(@axes, @bits), @bits) end |