Class: Geospatial::OrdinalIndex

Inherits:
Index
  • Object
show all
Defined in:
lib/geospatial/index.rb

Overview

Represents an index in ordinal space.

Instance Attribute Summary

Attributes inherited from Index

#axes, #bits

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_hilbertObject



76
77
78
# File 'lib/geospatial/index.rb', line 76

def to_hilbert
	HilbertIndex.new(Hilbert.map(@axes, @bits), @bits)
end