struct S2Cells::SphereInterval

Defined in:

s2_cells/interval.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct S2Cells::Interval

bound(i : Int) : Float64 bound, bounds : Tuple(Float64, Float64) bounds, hi : Float64 hi, lo : Float64 lo, to_s : String to_s

Constructor methods inherited from struct S2Cells::Interval

empty : Interval empty, new(lo : Float | Int, hi : Float | Int) new

Constructor Detail

def self.from_point_pair(a : Float64, b : Float64) : SphereInterval #

[View source]
def self.full : SphereInterval #

[View source]
def self.new(lo : Float | Int = Math::PI, hi : Float | Int = -Math::PI, args_checked : Bool = false) #

[View source]

Class Method Detail

def self.positive_distance(a : Float64, b : Float64) : Float64 #

[View source]

Instance Method Detail

def ==(other : SphereInterval) : Bool #

[View source]
def approx_equals(other : SphereInterval, max_error = 1e-15) : Bool #

[View source]
def complement : SphereInterval #

[View source]
def contains(other : SphereInterval | Float64) : Bool #

[View source]
def empty? : Bool #

[View source]
def expanded(radius : Float64) : SphereInterval #

[View source]
def fast_contains(other : Float64) : Bool #

[View source]
def full? : Bool #

[View source]
def get_center : Float64 #

[View source]
def get_complement_center : Float64 #

[View source]
def get_directed_hausdorff_distance(other : SphereInterval) : Float64 #

[View source]
def get_length : Float64 #

[View source]
def interior_contains(other : SphereInterval | Float64) : Bool #

[View source]
def interior_intersects(other : SphereInterval) : Bool #

[View source]
def intersection(other : SphereInterval) : SphereInterval #

[View source]
def intersects(other : SphereInterval) : Bool #

[View source]
def inverted? : Bool #

[View source]
def union(other : SphereInterval) : SphereInterval #

[View source]
def valid? : Bool #

[View source]