[Resolved] def tpoint in bezmisc.py : I do'nt understand.

Discuss SVG code, accessible via the XML Editor.
Papy Octet
Posts: 19
Joined: Tue Nov 25, 2008 3:06 pm

[Resolved] def tpoint in bezmisc.py : I do'nt understand.

Postby Papy Octet » Fri Aug 28, 2009 11:30 am

Dear Sirs,

First,sorry for my bad english. I do my best.
I try to write tools (extensions) in Inkscape.

In the fils "bezmisc.py" several definitions are declared but I do'nt understant why a point (named tpoint) is defined with two pair of coordonates :

Code: Select all

def tpoint((x1,y1),(x2,y2),t):
return x1+t*(x2-x1),y1+t*(y2-y1)


This code can be finded here : http://inkscape.modevia.com/doxygen.html"codebox">

Code: Select all

return x1+t*(x2-x1),y1+t*(y2-y1)


That tpoint is used in many other objects defined in the extensions in Inkscape.

Thank you.
Last edited by Papy Octet on Wed Feb 10, 2010 1:03 am, edited 1 time in total.