def setup background(220) v1 = createVector(1, 2, 3) v2 = createVector(3, 2, 1) text(P5Vector.dot(v1, v2), 40, 50) end
[p5.js] dot
2つのベクトルの内積を取得します。
内積の値