% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hexify_assign.R
\name{hexify_assign}
\alias{hexify_assign}
\title{Assign hex cells ('ISEA3H', aperture 3) for lon/lat}
\usage{
hexify_assign(lon, lat, effective_res, make_polygons = FALSE)
}
\arguments{
\item{lon, lat}{numeric vectors (same length), degrees.}

\item{effective_res}{integer effective resolution (>= 1).}

\item{make_polygons}{logical; if TRUE, return an sf with hex polygons.}
}
\value{
data.frame with id (Z3 index string), face (quad, 0-11),
effective_res, center_lon, center_lat; if make_polygons=TRUE,
an sf with geometry column.
}
\description{
Forward projection -> quantize -> cell centre -> inverse to lon/lat, on the
aperture-3 pipeline used by \code{\link[=hexify]{hexify()}}: points fold into the non-negative
quad frame (\code{\link[=lonlat_to_cell]{lonlat_to_cell()}}), and the centre comes back from the cell
itself (\code{\link[=cell_to_lonlat]{cell_to_lonlat()}}), so the returned centre is the centre of the
assigned cell.
}
\keyword{internal}
