Commit bfb249be63b95c21347bbc14a5296005dee642db
1 parent
d0db0dca
Exists in
master
and in
68 other branches
STYLE: only a comentary in the function that calcule the distance from a point to line
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/gui/widgets/clut_raycasting.py
@@ -308,7 +308,7 @@ class CLUTRaycastingWidget(wx.Panel): | @@ -308,7 +308,7 @@ class CLUTRaycastingWidget(wx.Panel): | ||
308 | # Calculate the size from those vectors | 308 | # Calculate the size from those vectors |
309 | len_A = numpy.linalg.norm(A) | 309 | len_A = numpy.linalg.norm(A) |
310 | len_B = numpy.linalg.norm(B) | 310 | len_B = numpy.linalg.norm(B) |
311 | - # calculate the angle (in radians) between those vector | 311 | + # calculate the angle theta (in radians) between those vector |
312 | theta = math.acos(numpy.dot(A, B) / (len_A * len_B)) | 312 | theta = math.acos(numpy.dot(A, B) / (len_A * len_B)) |
313 | # Using the sin from theta, calculate the adjacent leg, which is the | 313 | # Using the sin from theta, calculate the adjacent leg, which is the |
314 | # distance from the point to the line | 314 | # distance from the point to the line |