powered by
Function to randomly generate points within a horseshoe-shape
RandHorseShoe(center = c(0, 0), npts = 100, HorseShoeShape, HRatio = 1.5, RadRatio = 0.5)
- Arrary containint the coordinates of the center of circular portion of the horseshoe in decimal degrees
- Integer value indicating the number of points to generate within the horseshoe shape
- Object containing the outline of a horseshoe shape, output from PtsAlgHorseShoe function
- The ratio of the lower rectangle portions of the horseshoe to the outer radius of the circular portion of the horseshoe
- The ration of the of the outer to inner radius of the circular part of the horseshoe shape
Returns a 2-dimensional array of decimal degree coordinates within the horseshoe shape and the total area of the shape
HorseShoeTest<-PtsAlgHorseShoe(z=2000,spacing=1,endAngles=c(-90,90)) RandHorseShoe(center=c(0,0),npts=100,HorseShoeShape=HorseShoeTest)
Run the code above in your browser using DataLab