egg.geodesic: Estimate the geodesic

Description Usage Arguments Value Examples

View source: R/egg.geodesic.R

Description

Estimates the geodesic between the two input points

Usage

1
2
egg.geodesic(egg, coords, n = 1000, plot = FALSE, return.points = FALSE,
  ...)

Arguments

egg

an object of class egg.fit

coords

the spherical coordinates of two points on the egg surface, as obtained from egg.coords

n

the number of iterative rotations between p and q

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 lines function

Value

The geodesic between two points

Examples

 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)

egg documentation built on May 2, 2019, 5:55 p.m.

Related to egg.geodesic in egg...