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
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
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
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)
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