perlquestion
true
Howdy, CPAN has some great modules out on Math, Trig and 3D. Or at least they look great! I've been searching for some examples in use so i can join in. The documentation covers the names of functions but a concrete example slips my grasp so i can use it myself. I've looked at <a href="http://search.cpan.org/~jarw/Math-Trig-0.02/Trig.pm">Math::Trig</a> and <a href="http://search.cpan.org/~smueller/Math-Project3D-1.01/lib/Math/Project3D.pm">Math::Project3D</a>.
<p>I want to rotate a 3d vector by a certain amount and return the new vector points so my app can do stuff with it. The 3d vector i have is a point on the edge of a sphere in 3d space. I want to rotate this point by foo and get the 3 vector points back in a subroutine.
<p>I would include some code but its basically the example from Math:Project3D. Which i hope i do not need. Any advice, or known examples are greatly appreciated.
Zaxo had a nice <a href="http://www.perlmonks.org/index.pl?node_id=89236">snippet</a> but i got lost in the fact that there were only 2 vector points. Seems like the answer is in there somewhere though.
<p>thanks for reading.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-113251">
jtrue
</div></div>