Skip to content

Commit

Permalink
remove unecessary minus signs
Browse files Browse the repository at this point in the history
  • Loading branch information
confusedlama authored May 8, 2024
1 parent b63672e commit 053decd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipm_library/ipm_library/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 053decd

Please sign in to comment.