Vector.angle

Vector.angle(other)[source]

Compute the smallest angle between this vector and another vector.

Parameters

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

Returns

float – The smallest angle between the two vectors.

Examples

>>> u = Vector(1.0, 0.0, 0.0)
>>> v = Vector(0.0, 1.0, 0.0)
>>> u.angle(v) == 0.5 * math.pi
True