Rodrigues’ rotation formula: Difference between revisions
Content added Content deleted
m (→{{header|Julia}}: relax types) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: rearrange terms to be more symmetrical (strictly cosmetic)) |
||
Line 625: | Line 625: | ||
map @point • *, [ |
map @point • *, [ |
||
[ |
[ 𝑥²𝑡 + cos𝜃, 𝑦𝑥𝑡 - 𝑧sin𝜃, 𝑧𝑥𝑡 + 𝑦sin𝜃 ], |
||
[ 𝑥𝑦𝑡 + 𝑧sin𝜃, |
[ 𝑥𝑦𝑡 + 𝑧sin𝜃, 𝑦²𝑡 + cos𝜃, 𝑧𝑦𝑡 - 𝑥sin𝜃 ], |
||
[ |
[ 𝑥𝑧𝑡 - 𝑦sin𝜃, 𝑦𝑧𝑡 + 𝑥sin𝜃, 𝑧²𝑡 + cos𝜃 ] |
||
] |
] |
||
} |
} |