in reply to about the application of arrow operator
The code you are showing is calculating the sum of products of the x y and z component of two vectors a and b.
The arrows have the highest precedence in this calculation, then the multiplication and last the addition.
See "algebraic definition" in http://en.wikipedia.org/wiki/Dot_product for mathematical background.
a1 is $a->X and so on. ..
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
</""sub>
|
|---|