struct S2Cells::LatLngRect

Defined in:

s2_cells/lat_lng_rect.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.empty : LatLngRect #

[View source]
def self.from_center_size(center : LatLng, size : LatLng) : LatLngRect #

[View source]
def self.from_point(p : LatLng) : LatLngRect #

[View source]
def self.from_point_pair(a : LatLng, b : LatLng) : LatLngRect #

[View source]
def self.full : LatLngRect #

[View source]
def self.new(lo : LatLng, hi : LatLng) #

[View source]
def self.new(lat : LineInterval, lng : SphereInterval) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.full_lat : LineInterval #

[View source]
def self.full_lng : SphereInterval #

[View source]
def self.intersects_lat_edge(a : Point, b : Point, lat : Float64, lng : SphereInterval) : Bool #

[View source]
def self.intersects_lng_edge(a : Point, b : Point, lat : LineInterval, lng : Float64) : Bool #

[View source]
def self.ortho(a : Point) : Point #

[View source]
def self.robust_cross_prod(a : Point, b : Point) : Point #

[View source]
def self.simple_crossing(a : Point, b : Point, c : Point, d : Point) : Bool #

[View source]

Instance Method Detail

def ==(other : LatLngRect) : Bool #

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

[View source]
def area : Float64 #

[View source]
def contains(other : LatLngRect | LatLng | Point | Cell) : Bool #

[View source]
def convolve_with_cap(angle : Angle) : LatLngRect #

[View source]
def empty? : Bool #

[View source]
def expanded(margin : LatLng) : LatLngRect #

[View source]
def full? : Bool #

[View source]
def get_cap_bound : Cap #

[View source]
def get_center : LatLng #

[View source]
def get_size : LatLng #

[View source]
def get_vertex(k : Int32) : LatLng #

[View source]
def hi : LatLng #

[View source]
def interior_contains(other : LatLngRect | LatLng | Point) : Bool #

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

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

[View source]
def intersects(other : LatLngRect | Cell) : Bool #

[View source]
def lat : LineInterval #

[View source]
def lat_hi : Angle #

[View source]
def lat_lo : Angle #

[View source]
def lng : SphereInterval #

[View source]
def lng_hi : Angle #

[View source]
def lng_lo : Angle #

[View source]
def lo : LatLng #

[View source]
def may_intersect(cell : Cell) : Bool #

[View source]
def point? : Bool #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


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

[View source]
def valid? : Bool #

[View source]