R/point-distance.R

# mathieu rajerison
# https://datagistips.hypotheses.org/

point_distance <- function(pt1, pt2) {
  sqrt((pt1[1] - pt2[1])^2 + (pt1[2] - pt2[2])^2)
}
hrbrmstr/spdorling documentation built on May 13, 2019, 1:35 p.m.