% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/coerce.R
\name{as_streamline}
\alias{as_streamline}
\title{Coerce an object to a streamline}
\usage{
as_streamline(x, ...)
}
\arguments{
\item{x}{An object to coerce.}

\item{...}{Additional arguments (currently unused).}
}
\value{
A \link{streamline} object.
}
\description{
\code{as_streamline()} converts a supported object into a \link{streamline}.
}
\details{
Currently supported input classes:
\itemize{
\item \link{streamline}: returned unchanged.
\item \code{dwiFiber} (from \pkg{dti}): the object must contain \strong{exactly one}
fiber. For multi-fiber objects use \code{\link[=as_bundle]{as_bundle()}} instead.
}
}
\examples{
pts <- matrix(runif(15), ncol = 3, dimnames = list(NULL, c("X", "Y", "Z")))
sl <- streamline(points = pts)
identical(as_streamline(sl), sl)  # TRUE — identity coercion
}
\seealso{
\code{\link[=as_bundle]{as_bundle()}}, \code{\link[=as_dwifiber]{as_dwifiber()}}
}
