fil_to_filcdc.m¶
Basic Information¶
PURPOSE:
convert end point description of filaments xfil = [x1,y1,z1,x2,y2,z2]
to center & direction cosines xcdc= [xc,yc,zc,dcx,dcy,dcz]
also outputs filament length ll
SYNTAX:
[xcdc,ll]= fil_to_filcdc(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:
xcdc = filament center & direciton cosines: [xc,yc,zc,dcx,dcy,dcz]
ll = filament length