struct

S2Cells::Cell

Inherits Struct < Value < Object

Constructors

from_face_pos_level(face : Int32, pos : UInt64, level : Int32) : Cell
Source
from_lat_lng(lat_lng : LatLng) : Cell
Source
from_point(point : Point) : Cell
Source
new(face : Int32, level : Int32, orientation : Int32, cell_id : S2Cells::CellId, uv : Array(Array(Float64)))
Source
new(cell_id : CellId)
Source

Instance methods

approx_area
Source
average_area
Source
contains(other : Cell | Point) : Bool
Source
exact_area
Source
face
Source
get_cap_bound
Source
get_center
Source
get_center_raw
Source
get_edge(k : Int32) : Point
Source
get_edge_raw(k : Int32) : Point
Source
get_latitude(i : Int32, j : Int32) : Float64
Source
get_longitude(i : Int32, j : Int32) : Float64
Source
get_rect_bound
Source
get_u_axis(face : Int)
Source
get_u_norm(face : Int, u : Float64)

Vector normal to the positive v-axis and the plane through the origin.

The vector is normal to the positive v-axis and a plane that contains the origin and the v-axis.

Source
get_v_axis(face : Int)
Source
get_v_norm(face, v)

Vector normal to the positive u-axis and the plane through the origin.

The vector is normal to the positive u-axis and a plane that contains the origin and the u-axis.

Source
get_vertex(k : Int32) : Point
Source
get_vertex_raw(k : Int32) : Point
Source
leaf?
Source
level
Source
may_intersect(cell : Cell) : Bool
Source
orientation
Source
subdivide
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