egg.geodesic {eggs} | R Documentation |
Estimates the geodesic between the two input points
egg.geodesic(egg, coords, n = 1000, plot = FALSE, return.points = FALSE, ...)
egg |
an object of class |
coords |
the spherical coordinates of two points on the egg surface, as obtained from |
n |
the number of iterative rotations between |
plot |
logical, whether or not to plot the geodesic in the current plot window |
return.points |
logical, should a vector of points along the geodesic be returned |
... |
additional parameters passed to the |
The geodesic between two points
## Not run: # Determine egg shape and plot egg.image(egg) fit = egg.fit() egg.plot(fit, lwd = 3, col = "red") # Interactively select a series of points (at least 3) points = egg.coords(fit, type = "points", pch = 16, col = "red") # Determine the geodesic between points 1 and 3 egg.geodesic(fit, points[c(1,3),], n=1000, plot=TRUE, lwd=3, col="red") ## End(Not run)