Vector.dot

Vector.dot(other)[source]

The dot product of this vector and another vector.

Parameters

other (compas.geometry.Vector or list) – The other vector.

Returns

float – The dot product.

Examples

>>> u = Vector(1.0, 0.0, 0.0)
>>> v = Vector(0.0, 1.0, 0.0)
>>> u.dot(v)
0.0