Skip to content

Commit 64d8c6d

Browse files
committed
Rewrite deprecated cross for 2D
1 parent faf8e3d commit 64d8c6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrecest/filters/gprhm_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def pol2cart(phi, r=1.0):
3333

3434
def angle_between_two_vectors(x, y):
3535
dot_prod = dot(x, y)
36-
cross_prod = cross(x, y)
36+
cross_prod = x[..., 0] * y[..., 1] - x[..., 1] * y[..., 0]
3737
return -arctan2(cross_prod, dot_prod) % (2 * pi)
3838

3939

0 commit comments

Comments
 (0)