struct S2Cells::Cell
- S2Cells::Cell
- Struct
- Value
- Object
Defined in:
s2_cells/cell.crConstructors
- .from_face_pos_level(face : Int32, pos : UInt64, level : Int32) : Cell
- .from_lat_lng(lat_lng : LatLng) : Cell
- .from_point(point : Point) : Cell
- .new(face : Int32, level : Int32, orientation : Int32, cell_id : S2Cells::CellId, uv : Array(Array(Float64)))
- .new(cell_id : CellId)
Instance Method Summary
- #approx_area : Float64
- #average_area : Float64
- #contains(other : Cell | Point) : Bool
- #exact_area : Float64
- #face : Int32
- #get_cap_bound : Cap
- #get_center : Point
- #get_center_raw : Point
- #get_edge(k : Int32) : Point
- #get_edge_raw(k : Int32) : Point
- #get_latitude(i : Int32, j : Int32) : Float64
- #get_longitude(i : Int32, j : Int32) : Float64
- #get_rect_bound : LatLngRect
- #get_u_axis(face : Int)
-
#get_u_norm(face : Int, u : Float64)
Vector normal to the positive v-axis and the plane through the origin.
- #get_v_axis(face : Int)
-
#get_v_norm(face, v)
Vector normal to the positive u-axis and the plane through the origin.
- #get_vertex(k : Int32) : Point
- #get_vertex_raw(k : Int32) : Point
- #id : CellId | Nil
- #leaf? : Bool
- #level : Int32
- #may_intersect(cell : Cell) : Bool
- #orientation : Int32
- #subdivide(&)
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
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.
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.
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
.