editor / dot
dot(a, b): number
a
b
number
Defined in: math/dot.ts:14
Dot product of two vectors.
Formula: a · b = aₓ bₓ + a_y b_y = |a| |b| cos θ.
Vector
first vector
second vector
the scalar product, zero for perpendicular vectors
math
REF-MATHWORLD-DOT