Skip to content

Commit a005f56

Browse files
authored
Merge pull request #1333 from FlorianPfaff/cross2d_dep
Rewrite deprecated cross for 2D
2 parents 617a710 + 55a0da7 commit a005f56

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyrecest/filters/gprhm_tracker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
arctan2,
77
array,
88
cos,
9-
cross,
109
dot,
1110
exp,
1211
eye,
@@ -33,7 +32,7 @@ def pol2cart(phi, r=1.0):
3332

3433
def angle_between_two_vectors(x, y):
3534
dot_prod = dot(x, y)
36-
cross_prod = cross(x, y)
35+
cross_prod = x[..., 0] * y[..., 1] - x[..., 1] * y[..., 0]
3736
return -arctan2(cross_prod, dot_prod) % (2 * pi)
3837

3938

0 commit comments

Comments
 (0)