abstract struct S2Cells::Interval
- S2Cells::Interval
- Struct
- Value
- Object
Direct Known Subclasses
Defined in:
s2_cells/interval.crConstructors
-
.empty : Interval
Class method to return an empty Interval
-
.new(lo : Float | Int, hi : Float | Int)
Initialize with low and high bounds
Instance Method Summary
-
#bound(i : Int) : Float64
Method to get bound by index
-
#bounds : Tuple(Float64, Float64)
Method to get both bounds as a tuple
- #hi : Float64
-
#lo : Float64
Accessor methods for lo and hi
-
#to_s : String
String representation of the Interval object