Description Usage Arguments Value Examples
Estimates the geodesic between the two input points
1 2 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.