Exemplo n.º 1
0
 def tangent( self, alpha ):
   return ( ( self.xy1 - self.xy0 )/ numeric.norm2( self.xy1-self.xy0 ) )[_,:]
Exemplo n.º 2
0
 def __init__( self, xy0, xy1 ):
   Segment.__init__( self, xy0, xy1, numeric.norm2(xy0-xy1) )
   self.type = 'Line'