abstract struct S2Cells::Interval

Direct Known Subclasses

Defined in:

s2_cells/interval.cr

Constructors

Instance Method Summary

Constructor Detail

def self.empty : Interval #

Class method to return an empty Interval


[View source]
def self.new(lo : Float | Int, hi : Float | Int) #

Initialize with low and high bounds


[View source]

Instance Method Detail

def bound(i : Int) : Float64 #

Method to get bound by index


[View source]
def bounds : Tuple(Float64, Float64) #

Method to get both bounds as a tuple


[View source]
def hi : Float64 #

[View source]
def lo : Float64 #

Accessor methods for lo and hi


[View source]
def to_s : String #

String representation of the Interval object


[View source]