nested class Sample
More...
List of all members.
Detailed Description
nested class Sample
Definition at line 1528 of file svgfig.py.
Constructor & Destructor Documentation
def svgfig::Curve::Sample::__init__ |
( |
|
self, |
|
|
|
t |
|
) |
| |
Member Function Documentation
def svgfig::Curve::Sample::__repr__ |
( |
|
self | ) |
|
Definition at line 1529 of file svgfig.py.
01530 :
01531 t, x, y, X, Y = self.t, self.x, self.y, self.X, self.Y
01532 if t != None: t = "%g" % t
01533 if x != None: x = "%g" % x
01534 if y != None: y = "%g" % y
01535 if X != None: X = "%g" % X
01536 if Y != None: Y = "%g" % Y
01537 return "<Curve.Sample t=%s x=%s y=%s X=%s Y=%s>" % (t, x, y, X, Y)
def svgfig::Curve::Sample::evaluate |
( |
|
self, |
|
|
|
f, |
|
|
|
trans |
|
) |
| |
Definition at line 1542 of file svgfig.py.
01543 :
01544 self.x, self.y = f(self.t)
01545 if trans == None:
01546 self.X, self.Y = self.x, self.y
01547 else:
01548 self.X, self.Y = trans(self.x, self.y)
def svgfig::Curve::Sample::link |
( |
|
self, |
|
|
|
left, |
|
|
|
right |
|
) |
| |
Member Data Documentation