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