% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process_coordinates.R
\name{calculate_expansion_factors}
\alias{calculate_expansion_factors}
\title{Calculate Supercell Expansion Factors}
\usage{
calculate_expansion_factors(unit_cell_metrics, radius)
}
\arguments{
\item{unit_cell_metrics}{A \code{data.table} with cell parameters.}

\item{radius}{Numeric. The cutoff radius (e.g., 13.0 for Voronoi).}
}
\value{
A named numeric vector \code{c(a=..., b=..., c=...)}.
}
\description{
Computes the number of unit cell repetitions required in each
direction (a, b, c) to encompass a sphere of a given radius.
}
\examples{
uc <- data.table::data.table(`_cell_length_a` = 10, `_cell_length_b` = 10,
                             `_cell_length_c` = 10, `_cell_angle_alpha` = 90,
                             `_cell_angle_beta` = 90, `_cell_angle_gamma` = 90)
calculate_expansion_factors(uc, radius = 13.0)
}
\seealso{
Other coordinate processors: 
\code{\link{apply_symmetry_operations}()},
\code{\link{expand_transformed_coords}()}
}
\concept{coordinate processors}
