Truss:

--------------------------------------------------------------------------
   Generate a square truss going from x1 to x2.
   If n is omitted n = 10;

   Type Truss for a demo.
--------------------------------------------------------------------------
   Form:
   [v, f, l] = Truss( x1, x2, w, n )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x1         (3,1) Location of top
   x2         (3,1) Location of bottom
   w          (1,1) Width
   n          (1,1) Number of divisons 

   -------
   Outputs
   -------
   v         (:,3)  Vertices
   f         (:,3)  Faces
   l         (1,1)  Total length of the truss elements

--------------------------------------------------------------------------

Children:

Common: Graphics/NewFig
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Q2Mat
Common: Quaternion/U2Q
Math: Linear/Mag
Math: Linear/Unit