Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Code refactoring: simple trig, but it's been so long.

by revdiablo (Prior)
on Dec 30, 2004 at 04:36 UTC ( [id://418177]=note: print w/replies, xml ) Need Help??


in reply to Re: Code refactoring: simple trig, but it's been so long.
in thread Code refactoring: simple trig, but it's been so long.

you only need to find one displacement vector

Ah yes, this is true. Nice idea. I'll use this as well, thanks.

you won't really need to use sine/cosine, just tangent

But there's no builtin tangent function, which means I'll either have to use Math::Trig, or roll my own tan, in terms of sin and cos anyway, right? Or is there something I'm missing?

Replies are listed 'Best First'.
Re^3: Code refactoring: simple trig, but it's been so long.
by johnnywang (Priest) on Dec 30, 2004 at 05:11 UTC
    tan is just the slope:
    tan = (y2-y1)/(x2-x1)

Log In?
Username:
Password:

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

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

    No recent polls found