arc and parabola calculations which will have to be ported to clojure