Vector.dot

v0.1.7
Vector.dot(a, b);

No description

Arguments

aThe first vector
bThe second vector

Returns

numberThe dot product

local a = createVector(3, 5);
local b = createVector(1, 3);

-- From prototype
print(a:dot(b)); -- 18.0

-- With static method
print(Vector.dot(a, b)); -- 18.0

-- With concat syntax
print(a .. b); -- 18.0
See Vector.dot in lu5_vector.h