def draw background(220) v1 = createVector(1, 2, 3) v2 = createVector(2, 3, 4) v1.dot(v2) text(v1.dot(v2), 40, 50) end
[p5.js] (p5.Vector.obj).dot
他のベクトルとの内積を取得します。
r : 内積の値