Helper function, that should not be used outside the package. Computes x and y intercepts for a line given in polar coordinate representation. A line in polar coordinate representation is given by angle theta (with respect to the x-axis) and distance of the line to the origin rho.

rho_to_ab(rho = NULL, theta = NULL, df = NULL)

Arguments

rho

Numeric vector containing the shortest distance from the line to the origin

theta

Numeric vector containing the angle of the line from the positive x axis

df

Data frame containing output from a Hough transformation

Value

data frame with variables rho, theta, score (original data frame) expanded by yintercept, xintercept and slope.