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

Replies are listed 'Best First'.
Re^2: Rotation around an axis clockwise and anti-clockwise algorithm question?
by salva (Canon) 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.