Here is the link to the code https://github.com/akshayah3/sympy/blob/master/sympy/geometry/point.py
The reason for the classes to be tightly coupled was to enable such computations a = Point3D(1,2,3) a.distance(Point(2,3)) This returns the distance between these two points. This is one of the possible four combinations(as in distance between 2 3D points, 2 2D points, 3D and 2D point) So i have a question 1) Should the above code work as in should it give the result (sqrt(11)) in the above case or should it raise an nonimplement error as they are 2 different classes(3D and 2D) And this is the case in all other methods aswell like midpoint this also has 4 combinations Point3D(1,2,3).midpoint(Point(1,2)), Point3D(1,2,3).midpoint(Point3D(1,2,4)) and similarly 2 2D cases. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/41778438-8809-45b8-8e79-e8b98171cbfd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
