arc

A small python library for calculating the length of an arc


License
GPL-3.0
Install
pip install arc==1.0

Documentation

arc

A small python library for calculating the length of an arc.

Install

pip install arc

How to use

from arc import arc_length

radius_of_circle = 12 # 12"
degree_of_arc = 60 # 60°

length_of_arc = arc_length(
    degree_of_arc,
    radius_of_circle
)
print length_of_arc # 12.56637061435917

circumference_of_circle = 24

length_of_arc = arc_length(
    degree_of_arc,
    circumference=circumference_of_circle
)
print length_of_arc # 12.56637061435917