% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/traversal.R
\name{a5_spherical_cap}
\alias{a5_spherical_cap}
\title{Cells within a great-circle radius}
\usage{
a5_spherical_cap(cell, radius)
}
\arguments{
\item{cell}{A single \link{a5_cell} value.}

\item{radius}{Numeric scalar, great-circle radius in metres.}
}
\value{
A compacted \link{a5_cell} vector.
}
\description{
Returns all cells whose centres fall within a great-circle distance
of a given cell's centre.
}
\examples{
cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 8)
a5_spherical_cap(cell, radius = 1000)
}
\seealso{
\code{\link[=a5_grid_disk]{a5_grid_disk()}} for hop-based selection.
}
