Learn R Programming

GeoRange (version 0.1.0)

HorseShoeArea: Function to calcuate the area of a given horseshoe shape

Description

Function to calcuate the area of a given horseshoe shape

Usage

HorseShoeArea(HorseShoeShape)

Arguments

HorseShoeShape

- Object containing the outline of a horseshoe shape, output from PtsAlgHorseShoe function

Value

Returns the area of the horseshoe shape with the circular and rectangular portions separated

References

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

Examples

Run this code
HorseShoeTest<-PtsAlgHorseShoe(z=2000,spacing=1,endAngles=c(-90,90))
HorseShoeArea(HorseShoeTest)

Run the code above in your browser using DataLab