コード例 #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'