sph.angles | R Documentation |
Calculate the size of all angles in a spherical polygon
sph.angles(win)
win |
A window. Must be an object of class |
This function uses the spherical geometry and the spherical cosine rule to calculate the sizes of all angles in a spherical polygon.
A numeric containing the sizes of all angles in radians, given in an
anticlockwise direction. The first angle in the numeric is at the
second of the vertices in listed under param
in the
sphwin
object.
Tom Lawrence <email: tjlawrence@bigpond.com>
sphcos
(spherical cosine rule), sphsin
(spherical sine rule)
x <- matrix(nrow=4, ncol=2) x[1,] <- c(0,0) x[2,] <- c(pi/2, 0) x[3,] <- c(pi/2, pi/2) x[4,] <- c(0,0) sphpoly <- sphwin(type="polygon", param=x, ref=rep(0, 3), ref3=c(pi/4,pi/4)) sph.angles(win=sphpoly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.