Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Rotation around an axis clockwise and anti-clockwise algorithm question?

by johngg (Abbot)
on Jun 12, 2012 at 22:23 UTC ( #975881=note: print w/ replies, xml ) Need Help??


in reply to Rotation around an axis clockwise and anti-clockwise algorithm question?

Not related to your problem (at least, I don't think so) but did you really mean to use the string multiplier (x) in this line of code?

$s[$i] = $AxisLineUnitvector x $Vector[$i];

It just seems a little out of place when all the other multipliers are the arithmetic (*) sort.

Cheers,

JohnGG


Comment on Re: Rotation around an axis clockwise and anti-clockwise algorithm question?
Select or Download Code
Re^2: Rotation around an axis clockwise and anti-clockwise algorithm question?
by salva (Abbot) on Jun 13, 2012 at 10:51 UTC
    Math::Vector::Real overloads the x operator to perform the cross product of the two vectors. It is customary in maths to use x for that operation.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-12-25 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (161 votes), past polls