Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unecessary minus signs #65

Merged
merged 1 commit into from
May 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading