Skip to content

Commit

Permalink
remove redundant normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Apr 19, 2024
1 parent ab33796 commit 63fcbcd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions octreelib/ransac/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ def measure_distance(plane, point):
:param plane: Plane coefficients.
:param point: Point coordinates.
"""
return (
math.fabs(
plane[0] * point[0] + plane[1] * point[1] + plane[2] * point[2] + plane[3]
)
/ (plane[0] ** 2 + plane[1] ** 2 + plane[2] ** 2) ** 0.5
return math.fabs(
plane[0] * point[0] + plane[1] * point[1] + plane[2] * point[2] + plane[3]
)


Expand Down

0 comments on commit 63fcbcd

Please sign in to comment.