Jump to content

Talk:Total circles area: Difference between revisions

Line 74:
: Actually there is one thing that's not quite right: in an arc ((x,y,r), (a0,a1)) the (a0,a1) is not a vector, they are a pair of angles of the start and end points on the original circle. It doesn't hurt the computation, but as readability goes, nameing them "Vec" is misleading. --[[User:Ledrug|Ledrug]] 18:26, 21 September 2012 (UTC)
 
:: Right, I am sorry. In a (Haskell) program types contain lot of information (like telling apart two tuples that contain two doubles). For a second programmer that tries to add more of such information it's easy to miss part of the semantics and introduce wrong type information. I will try to introduce a AngsAngle2 type and fix the code. And later please take a look at the code. I am an Haskell newbie myself, but we are learning. --[[User:Bearophile|bearophile]] 19:36, 21 September 2012 (UTC)
:: Done. Please take a look at the code, to make sure I have not used an Angle where instead goes a normal Double, and I have not used an Angle2 where a Vet instead goes.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.