Hi Akshay,

On Tue, Mar 4, 2014 at 12:28 PM, Akshay <akshaynukal...@gmail.com> wrote:
>> @ondrej Thanks for the quick reply .
>
>  As you pointed out I have been working on the prototype for past few days
> and for the intersection of two lines it looks something like this:
> a = Line(Point(1,2,3),Point(2,3,4))
> b = Line(Point(5,5,5),Point(-8,-6,-3))
> a.interection(b) = Point(-1.5, -0.5, 0.5)
>
> a.arbitrary_point() = Point(t+1,t+2,t+3)
> b.arbitrary_point('z') = Point(-13*z +5, -11*z+5, -8z+5)
> c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
> a.intersection(c)
> Point(2,3,4)
>
> Apart from this I have been thinking about a class which does this
> x,y,z = map(Symbol, 'xyz')
> p1,p2,p3 = Point(x, y), Point(y, z), Point(2*x*y, y)
> Point.is_collinear(p1, p2, p3) this returns false but it is better to return
> this
> Points are collinear if z - y - 2*y*z + 2*y**2 == 0
> This class should support the following methods at least:
> is_similar is_parallel is_concyclic is_perpendicular encloses_point
> is_tangent is_convex contains collinear

Very good. I think this makes sense.

Ondrej

-- 
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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
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/CADDwiVAf4_1zqB-%3D7RapFqe21ZYp_z_XGmyHBhPmvoo0mYHNqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to