-
Notifications
You must be signed in to change notification settings - Fork 20
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
Is there a typo in hull.py #1
Comments
Looking at this after a long time so I might be rusty in coordinate geometry now But it seems Can you create a pull request with necessary changes
|
Thanks for your replying. Suppose we have a triangle denoted as ABX, with vectors vec1 = \vec{AX}, vec2 = \vec{BX}, vec3 = \vec{AB}, and vec4 = cross(vec1, vec2). Thus d can be computed as |AX| * |BX| * sin(\theta) / |AB|, which is exactly the norm of vec4 / the norm of vec3. Besides if the norm of vec3 is zero (i.e. point A and point B converge into the same position) there is no line segment any more. :) |
Yep, correct again, so there are 2 ways to close this issue
I think I will also go with method 2. If that is all I will close the issue by making that change |
Method 2 looks good to me, thank you! |
Sorry for bothering! I was wondering whether there is a typo in the
hull.py
file, line:190:in function
def distLine(pointA, pointB, pointX)
You have calculated
vec3
but never use it. I think for a line-segment from pointA to pointB, the distance from pointX should be::)
The text was updated successfully, but these errors were encountered: