Points as matrix
points_as_mat(pts)
pts
SpatVector points or sf object
Converts sf points to coordinates matrix
matrix