I have the following piece of code
from sympy import Point, Line
l1 = Line((3,5,-2), (1,-1,4))
p1 = Point3D((3, 7, 9))
intersection_p = p1.intersection(l1)[0]
print(intersection_p)
I get
Point3D(30/7, 62/7, -41/7)
But, I want the float values, not the rationals.
[4.285714285714286, 8.857142857142858, -5.857142857142857]
I've done this which gives me the desired output.
intersection1 = [float(i) for i in p1.intersection(l1)[0].args]
But I was wondering if there is any sympy method that converts/extracts the Point3D object's coordinate values as float.