Extras¶
-
spiceminer.extra.
angle
(v0, v1, center=None)¶ Calculate the angle between 2 vectors.
Parameters: v0, v1: array-like
The two vectors to measure the angle between. Must have shape (n>1,).
center: array-like, optional
An alternative vector to use as zero-vector. Must have shape (n>1,). If center is given, v0 and v1 are assumed to be relative to it and the angle between
v0 - center
andv1 - center
is calculated instead.Returns: float
The angle between v0 and v1 in radians.