powered by
getDistance(point.a, point.b, resolution=1)
##initialize data point.a <- c(5,8) point.b <- c(10,3) ##calculate the distance of the two points distance <- getDistance(point.a,point.b, resolution=1) print(distance)
Run the code above in your browser using DataLab