Skip to content

Commit 89e4892

Browse files
committed
Merge branch 'add_point_to_plane_distance' of https://github.com/leebyte26/Python into add_point_to_plane_distance
2 parents 710a359 + b093678 commit 89e4892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geometry/point_to_plane_distance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def point_to_plane_distance(
2222
"""
2323
if a == 0 and b == 0 and c == 0:
2424
raise ValueError("Normal vector cannot be zero.")
25-
26-
return abs(a * x + b * y + c * z + d) / sqrt(a**2 + b**2 + c**2)
25+
26+
return abs(a * x + b * y + c * z + d) / sqrt(a**2 + b**2 + c**2)

0 commit comments

Comments
 (0)