Calculates the centroid for a given set of XYZ coordinates.
Examples
data <- mesh_to_points(mcap)
centroid(data)
#> [1] -1.2530338 0.9478938 -3.6076058
Calculates the centroid for a given set of XYZ coordinates.
data <- mesh_to_points(mcap)
centroid(data)
#> [1] -1.2530338 0.9478938 -3.6076058