<?xml version="1.0" encoding="windows-1252"?>
<node id="978519" title="Re: Polar Co-Ordinates: Rotating a 3D cartesian point around a fixed axis?" created="2012-06-26 17:51:10" updated="2012-06-26 17:51:10">
<type id="11">
note</type>
<author id="446266">
salva</author>
<data>
<field name="doctext">
[mod://Math::Vector::Real] provides the method &lt;c&gt;rotate_3d&lt;/c&gt; that already does what you want:
&lt;c&gt;
use Math::Vector::Real;

$offset = V($x, $y, $z);
$p_rotated_1deg = $axis-&gt;rotate_3d(1*$pi/180, $p - $offset) + $offset;
&lt;/c&gt;</field>
<field name="root_node">
978485</field>
<field name="parent_node">
978485</field>
</data>
</node>
