class S2Cells::CellId
- S2Cells::CellId
- Reference
- Object
Included Modules
Defined in:
s2_cells/cell_id.crConstructors
Class Method Summary
- .face_uv_to_xyz(face : UInt64, u : Float64, v : Float64)
- .from_face_ij(face : UInt64, i : UInt64, j : UInt64)
- .from_lat_lon(lat : Float64, lon : Float64)
- .from_point(p : Point)
-
.from_token(token : String)
returns a cell given a hex-encoded string of its uint64 ID
- .st_to_ij(s : Float64) : UInt64
- .uv_to_st(u : Float64)
- .valid_face_xyz_to_uv(face : UInt64, p : Point)
- .xyz_to_face_uv(p : Point) : Tuple(UInt64, Float64, Float64)
Instance Method Summary
- #id : UInt64
- #level
- #next
- #parent(level)
- #prev
-
#to_token : String
ToToken returns a hex-encoded string of the uint64 cell id, with leading zeros included but trailing zeros stripped.
Class methods inherited from module S2Cells::CellBase
lookup_bits(i, j, orig_orientation, pos, orientation)
lookup_bits,
lookup_cells(level, i, j, orig_orientation, pos, orientation)
lookup_cells
Constructor Detail
Class Method Detail
Instance Method Detail
def to_token : String
#
ToToken returns a hex-encoded string of the uint64 cell id, with leading zeros included but trailing zeros stripped.