dot_vectors

compas.geometry.dot_vectors(u, v)[source]

Compute the dot product of two vectors.

Parameters
Returns

float – The dot product of the two vectors.

Examples

>>> dot_vectors([1.0, 0, 0], [2.0, 0, 0])
2.0