示例#1
0
文件: curve.py 项目: rodyvtu/sambal
 def tangent( self, alpha ):
   return ( ( self.xy1 - self.xy0 )/ numeric.norm2( self.xy1-self.xy0 ) )[_,:]
示例#2
0
文件: curve.py 项目: rodyvtu/sambal
 def __init__( self, xy0, xy1 ):
   Segment.__init__( self, xy0, xy1, numeric.norm2(xy0-xy1) )
   self.type = 'Line'