R/centroid.R
centroid.Rd
Calculates the centroid for a given set of XYZ coordinates.
centroid(data)
A data frame with x, y, and z coordinates.
The coordinates of the centroid.
data <- mesh_to_points(mcap) centroid(data) #> [1] -1.2530338 0.9478938 -3.6076058