From bfb249be63b95c21347bbc14a5296005dee642db Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Wed, 16 Sep 2009 11:39:32 +0000 Subject: [PATCH] STYLE: only a comentary in the function that calcule the distance from a point to line --- invesalius/gui/widgets/clut_raycasting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/gui/widgets/clut_raycasting.py b/invesalius/gui/widgets/clut_raycasting.py index 7f5e0ed..3e69703 100644 --- a/invesalius/gui/widgets/clut_raycasting.py +++ b/invesalius/gui/widgets/clut_raycasting.py @@ -308,7 +308,7 @@ class CLUTRaycastingWidget(wx.Panel): # Calculate the size from those vectors len_A = numpy.linalg.norm(A) len_B = numpy.linalg.norm(B) - # calculate the angle (in radians) between those vector + # calculate the angle theta (in radians) between those vector theta = math.acos(numpy.dot(A, B) / (len_A * len_B)) # Using the sin from theta, calculate the adjacent leg, which is the # distance from the point to the line -- libgit2 0.21.2