Skip to content

fil_to_filc.m

Basic Information

 PURPOSE:
         convert end point description of filaments xfil = [x1,y1,z1,x2,y2,z2]
         to center xc= [xc,yc,zc] and delta= [dx,dy,dz]

 SYNTAX:
        [xfilc]= fil_to_filc(xfil)

 INPUT:
       xfil = filament matrix defined by end points of filament contining 6 columns
              [x1,y1,z1,x2,y2,z2] where 1 is start of filament and 2 is end

 OUTPUT:
       xfilc= filament center and delta: 6 column matrix [xc,yc,zc,dx,dy,dz]

 NOTE: See fil_to_filcdc for output of center, direction cos, & line length