Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 (Monsignor) 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 rifling through the Monastery: (5)
As of 2014-08-30 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls