% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/angle_utils.R
\name{.normalize_angle}
\alias{.normalize_angle}
\title{Auto-detect angle unit and normalise to radians}
\usage{
.normalize_angle(x, name = "angle")
}
\arguments{
\item{x}{Single finite numeric.}

\item{name}{Parameter name used in error / message text.}
}
\value{
Numeric. Radians.
}
\description{
Internal helper. Accepts a single numeric and returns the equivalent
angle in radians. The rule is:
\itemize{
  \item \code{|x| <= 2*pi} -> treated as radians (e.g. \code{pi/2}, \code{pi}, \code{2*pi}).
  \item \code{|x| > 2*pi} -> treated as degrees and converted (e.g. \code{45}, \code{90}, \code{180}).
}
If the value falls in the ambiguous "small-but-bigger-than-pi" zone
(i.e. \code{(pi, 2*pi]}), a \code{message()} is emitted reporting the
interpretation and pointing the user at \code{deg()} as a way to be
explicit.
}
\keyword{internal}
