Re: [sympy] Re: help with the geometric module project api

2014-05-24 Thread Stefan Krastanov
We could do it in the Plane class as you above described but that would also require a lot of if instance statements in the plane class as well as we have to check whether a point is 2D or 3D and act accordingly. I do not see why this would be the case. Could you give an example? Projections

[sympy] Re: help with the geometric module project api

2014-05-23 Thread Akshay
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

[sympy] Re: help with the geometric module project api

2014-05-23 Thread Akshay
https://github.com/akshayah3/sympy/blob/Point/sympy/geometry/point.py Sorry this is the correct link to the code. -- 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

Re: [sympy] Re: help with the geometric module project api

2014-05-23 Thread Stefan Krastanov
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)

Re: [sympy] Re: help with the geometric module project api

2014-05-23 Thread Akshay Narasimha
My opinion was that it does not make sense to calculate anything between 3D and 2D points, as they live in different spaces. However there should be a way to promote 2D point to 3D like the following: plane = ... # some object representing a 2D plane in 3D space point = ... # some 2d point