-
Notifications
You must be signed in to change notification settings - Fork 13
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
Intersection of line and cylinder #44
Comments
It is implemented but you have to use the c = Cylinder()
l = Line(Point(2, 2, 2), Point(3, 3, 3))
print(c.intersect(l)) I'll close this issue but please let me know if you have any more questions. |
Thank you. One more question: what is the recommended test for a point in infinity, which is returned when there is no intersection? |
Points at infinity are exactly those that have a zero in their last coordinate. For convenience I added the property |
Which is the last coordinate? This snippet:
produces:
with non-zero last coordinate. |
The last coordinate is not shown in the standard string representation of a point. Instead "at Infinity" is added when it is close to zero. You can see all the homogeneous coordinates like this: |
Is intersection of line and cylinder implemented? I tried this:
without success.
The text was updated successfully, but these errors were encountered: