calc_r: Distance from the center

View source: R/basic_metrics_pc.R

calc_rR Documentation

Distance from the center

Description

Calculates the distance of each 2D point (X,Y) in a point cloud from the center (xc, yc) of a circle.

Usage

calc_r(x, y, xc, yc)

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.

Details

Support function used to determine the DBH from a tree point cloud with dbh_pc and dab_pc.

Value

The distance of 2D points to the center

Examples

## Not run: 
Ri <- calc_r(x_dbh, y_dbh, x_c, y_c)
R <- mean(Ri)

## End(Not run)

lmterryn/ITSMe documentation built on Feb. 4, 2025, 2:21 a.m.