S2CellId.this - multiple declarations
Function S2CellId.this
Construct a cell from a raw numerical S2 Cell ID.
this
(
ulong id
);
Function S2CellId.this
Construct a leaf cell containing the given point "p". Usually there is is exactly one such cell, but for points along the edge of a cell, any adjacent cell may be (deterministically) chosen. This is because S2CellIds are considered to be closed sets. The returned cell will always contain the given point, i.e.
this
(
in const(s2 .util .math .vector .Vector!(double,3L)) p
);
S2Cell(S2CellId(p)).Contains(p)
is always true. The point "p" does not need to be normalized.
If instead you want every point to be contained by exactly one S2Cell, you will need to convert the S2CellIds to S2Loops (which implement point containment this way).
Function S2CellId.this
Constructs a cell from a latitude-longitude coordinate.
this
(
in const(s2 .s2latlng .S2LatLng) ll
);