struct

S2Cells::Interval

Inherits Struct < Value < Object

Constructors

empty

Class method to return an empty Interval

Source
new(lo : Float | Int, hi : Float | Int)

Initialize with low and high bounds

Source

Instance methods

bound(i : Int) : Float64

Method to get bound by index

Source
bounds

Method to get both bounds as a tuple

Source
lo

Accessor methods for lo and hi

Source
to_s

String representation of the Interval object

Source