Skip to content
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

3D irrational numbers #17979

Open
yunuserenkaya opened this issue Nov 29, 2019 · 1 comment
Open

3D irrational numbers #17979

yunuserenkaya opened this issue Nov 29, 2019 · 1 comment
Labels

Comments

@yunuserenkaya
Copy link

yunuserenkaya commented Nov 29, 2019

Hello, I am trying to find intersections of some lines. But the way i do it i keep having irrational 3d points if the line are not straight. Could you please help me fix it?
My code is here:

for i in range((len(list_aday))-1):
    for j in range(i+1,len(list_aday)):
        c=(intersection(Segment(list_aday[i][0],list_aday[i][1],),Segment(list_aday[j][0],list_aday[j][1])))
        if c!=[]and c not in list_aday_updated:
            list_aday_updated.append(c)
print(list_aday_updated)

My output is : [[Point3D(15, 100, 0)], [Point3D(15, 2630873562090074527311274627/60591416032633487500000000, 0)], .... I have to fix that long number.

@Jaime02
Copy link
Contributor

Jaime02 commented Dec 1, 2019

What is the value of "list_aday" in that example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants