Calculate the projection of a point onto the transect line.

projection(transect_desc, x)

Arguments

transect_desc

A data frame containing the transect description.

x

A numeric vector representing the point coordinates.

Value

A numeric vector representing the distance along the transect and the perpendicular distance to the line.