dot

Dot product

T
dot
(
T
int size
)
(
Vector!(T, size) a
,
Vector!(T, size) b
)

Examples

Vector3f v = Vector3f(1, 0, 0);
assert(dot(v, v) == 1);

Vector3f a = Vector3f(1, 2, 3, 4);
assert(dot(a, a) == 14);

Meta