struct

S2Cells::LatLngRect

Inherits Struct < Value < Object

Constructors

empty
Source
from_center_size(center : LatLng, size : LatLng) : LatLngRect
Source
from_point(p : LatLng) : LatLngRect
Source
from_point_pair(a : LatLng, b : LatLng) : LatLngRect
Source
full
Source
new(lo : LatLng, hi : LatLng)
Source
new(lat : LineInterval, lng : SphereInterval)
Source

Class methods

full_lat
Source
full_lng
Source
intersects_lat_edge(a : Point, b : Point, lat : Float64, lng : SphereInterval) : Bool
Source
intersects_lng_edge(a : Point, b : Point, lat : LineInterval, lng : Float64) : Bool
Source
ortho(a : Point) : Point
Source
robust_cross_prod(a : Point, b : Point) : Point
Source
simple_crossing(a : Point, b : Point, c : Point, d : Point) : Bool
Source

Instance methods

==(other : LatLngRect) : Bool
Source
approx_equals(other : LatLngRect, max_error = 1e-15) : Bool
Source
area
Source
contains(other : LatLngRect | LatLng | Point | Cell) : Bool
Source
convolve_with_cap(angle : Angle) : LatLngRect
Source
empty?
Source
expanded(margin : LatLng) : LatLngRect
Source
full?
Source
get_cap_bound
Source
get_center
Source
get_size
Source
get_vertex(k : Int32) : LatLng
Source
interior_contains(other : LatLngRect | LatLng | Point) : Bool
Source
interior_intersects(other : LatLngRect) : Bool
Source
intersection(other : LatLngRect) : LatLngRect
Source
intersects(other : LatLngRect | Cell) : Bool
Source
lat_hi
Source
lat_lo
Source
lng_hi
Source
lng_lo
Source
may_intersect(cell : Cell) : Bool
Source
point?
Source
to_s

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.

Source
union(other : LatLngRect) : LatLngRect
Source
valid?
Source