From 053decd7e7a741e9fae652fb9ddccf16f60f3689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=5FWiegmann?= <89636287+confusedlama@users.noreply.github.com> Date: Wed, 8 May 2024 16:02:02 +0200 Subject: [PATCH] remove unecessary minus signs --- ipm_library/ipm_library/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipm_library/ipm_library/utils.py b/ipm_library/ipm_library/utils.py index d1ff6ea..f68efb2 100644 --- a/ipm_library/ipm_library/utils.py +++ b/ipm_library/ipm_library/utils.py @@ -156,7 +156,7 @@ def line_plane_intersections( :returns: A nx3 array containing the 3d intersection points with n being the number of rays. """ n_dot_u = np.tensordot(plane_normal, ray_directions, axes=([0], [1])) - relative_ray_distance = -plane_normal.dot(-plane_base_point) / n_dot_u + relative_ray_distance = plane_normal.dot(plane_base_point) / n_dot_u # we are casting a ray, intersections need to be in front of the camera relative_ray_distance[relative_ray_distance <= 0] = np.nan