View source: R/hexify_conversions.R
| hexify_quad_ij_to_xy | R Documentation |
Converts discrete cell indices to continuous quad coordinates. Useful for computing cell centers or understanding the cell geometry.
hexify_quad_ij_to_xy(quad, i, j, resolution, aperture = 3L)
quad |
Quad number (0-11) |
i |
Cell index along first axis |
j |
Cell index along second axis |
resolution |
Grid resolution level |
aperture |
Grid aperture: 3, 4, or 7 |
List with components:
quad_x |
Continuous X coordinate in quad space |
quad_y |
Continuous Y coordinate in quad space |
Other coordinate conversion:
hexify_cell_id_to_quad_ij(),
hexify_cell_to_icosa_tri(),
hexify_cell_to_lonlat(),
hexify_cell_to_plane(),
hexify_cell_to_quad_ij(),
hexify_cell_to_quad_xy(),
hexify_grid_cell_to_lonlat(),
hexify_grid_to_cell(),
hexify_icosa_tri_to_plane(),
hexify_icosa_tri_to_quad_ij(),
hexify_icosa_tri_to_quad_xy(),
hexify_lonlat_to_cell(),
hexify_lonlat_to_plane(),
hexify_lonlat_to_quad_ij(),
hexify_quad_ij_to_cell(),
hexify_quad_ij_to_icosa_tri(),
hexify_quad_xy_to_cell(),
hexify_quad_xy_to_icosa_tri(),
hexify_roundtrip_test()
# Get continuous quad coordinates for a cell
xy <- hexify_quad_ij_to_xy(quad = 1, i = 100, j = 50,
resolution = 10, aperture = 3)
print(xy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.