get_2d_chull: Compute area, perimeter and centroid of an 2d convex hull for...

Description Usage Arguments Value Author(s) Examples

View source: R/get_2d_chull.R

Description

Compute area, perimeter and centroid of an 2d convex hull.

Usage

1
2
3
4
get_2d_chull(
  input_cloud = data.frame(x = runif(20), y = runif(20)),
  plot = FALSE
)

Arguments

input_cloud

A file or data.frame containing x and y points. If file, it assumes first three columns to be x y z without header. Futher columns are ignored.

plot

Should the convex hull be plotted. Default to FALSE.

Value

A data.frame containing: area, perimeter, cpa_cen_x, cpa_cen_y.

Author(s)

Matthias Kunz, last updated: 27.04.2019

Examples

1

spatial-mk/tre3d documentation built on April 1, 2020, 5:26 p.m.