S2Cells::Cell
Constructors
from_lat_lng(lat_lng : LatLng) : Cell
Sourcefrom_point(point : Point) : Cell
Sourcenew(face : Int32, level : Int32, orientation : Int32, cell_id : S2Cells::CellId, uv : Array(Array(Float64)))
Sourcenew(cell_id : CellId)
SourceInstance methods
approx_area
Sourceaverage_area
Sourceexact_area
Sourceface
Sourceget_cap_bound
Sourceget_center
Sourceget_center_raw
Sourceget_rect_bound
SourceVector 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.
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.
id
Sourceleaf?
Sourcelevel
Sourceorientation
Sourcesubdivide
Sourceto_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.