Module s2::metric

source ·
Expand description

This file implements functions for various S2 measurements.

Structs

Constants

MAX_DIAG_ASPECT is the maximum diagonal aspect ratio over all cells at any level, where the diagonal aspect ratio of a cell is defined as the ratio of its longest diagonal length to its shortest diagonal length. TODO: 3f64.sqrt()
MAX_EDGE_ASPECT is the maximum edge aspect ratio over all cells at any level, where the edge aspect ratio of a cell is defined as the ratio of its longest edge length to its shortest edge length.