Skip to content
/ arc Public

Helper library to calculate the length of an arc

License

Notifications You must be signed in to change notification settings

hcharley/arc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Helper library to calculate the length of an arc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published