PtsAlgHorseShoe {GeoRange}R Documentation

Function to find points along a horseshoe shape

Description

Function to find points along a horseshoe shape

Usage

PtsAlgHorseShoe(z, spacing = 1, endAngles = c(-90, 90))

Arguments

z

- Distance in kilometers from the center of the horseshoe to its lower boundary

spacing

- Degrees between successive point outlining the horseshoe shape

endAngles

- Array of values denoting the degree of rotation for the circular part of the horseshoe distribution

Details

Currently forces use 0,0 as the center, a height 5/4 width, and r2=2*r1 of origin (center)

Value

Returns a 2-dimensional array of decimal degree coordinates outlining a horseshoe shape

Note

Currently only works when endAngles are multiples of -90,90; otherwise rectangle point positions are off

References

[1] From http://mathforum.org/library/drmath/view/51816.html

Examples

PtsAlgHorseShoe(z=2000,spacing=1,endAngles=c(-90,90))

[Package GeoRange version 0.1.0 Index]