Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Drawing arcs with Tk and labeling them, problems with the math?

by benn (Vicar)
on Sep 10, 2003 at 19:13 UTC ( [id://290501]=note: print w/replies, xml ) Need Help??


in reply to Drawing arcs with Tk and labeling them, problems with the math?

$ystop = int($xstop + $tick_length*sin($drawn_angle*$deg2rad));
Ermm - shouldn't that be $ystart instead of $xstop?

As an aside, 3.1417 is not as near an approximation to PI (3.14159...) as 3.1416 is :)

Cheers, Ben.

Replies are listed 'Best First'.
Re: Re: Drawing arcs with Tk and labeling them, problems with the math?
by Anonymous Monk on Sep 10, 2003 at 22:10 UTC
    Ben, Thanks that worked great. Now I just have a problem with where the ticks come from. I need one tick per arc but I'm not getting that. I think it's a math problem. Any ideas? Thanks, Mark

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-28 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found