Calculates the distance of each 2D point (X,Y) in a point cloud from the center (xc, yc) of a circle.
Arguments
- x
X values of the points.
- y
Y values of the points.
- xc
X-coordinate of the center.
- yc
Y-coordinate of the center.
Examples
if (FALSE) {
Ri <- calc_r(x_dbh, y_dbh, x_c, y_c)
R <- mean(Ri)
}