Vector.dot

Vector.dot(other)[source]

The dot product of this vector and another vector.

Parameters

other ([float, float, float] | compas.geometry.Vector) – 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