Vector products: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 5,287: | Line 5,287: | ||
v1 x (v2 x v3) = (-267, 204, -3)</pre> |
v1 x (v2 x v3) = (-267, 204, -3)</pre> |
||
=={{header|Vlang}}== |
=={{header|V (Vlang)}}== |
||
{{trans|Go}} |
{{trans|Go}} |
||
<syntaxhighlight lang="vlang">struct Vector { |
<syntaxhighlight lang="v (vlang)">struct Vector { |
||
x f64 |
x f64 |
||
y f64 |
y f64 |