Rodrigues’ rotation formula: Difference between revisions

(Moved Perl entry into correct alphabetical order.)
(→‎{{header|ALGOL 68}}: tweaked output)
Line 43:
VECTOR ncp = normalize( cp );
VECTOR np = a rotate( v1, ncp, a );
print( ( "( ", fixed( np[ 1 ], -10, 6 )
, ", ", fixed( np[ 2 ], -10, 6 )
, ", ", fixed( np[ 3 ], -10, 6 )
, " )", newline
)
)
Line 52:
{{out}}
<pre>
( 2.232221, 1.395138, -8.370829 )
</pre>
 
3,045

edits