RoundedRectangle:

Path: AerospaceUtils/ComponentModels

% Create an outline of a rounded rectangle 
 Compute the x and y coordinates for a rounded rectangle outline.
 Type RoundedRectangle for a demo.
--------------------------------------------------------------------------
   Form:
   [x, y] = RoundedRectangle( a, b, r )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   a (1,1) x distance between circles
   b (1,1) y distance between circles
   n (1,1) Number of divisions in quarter circle

   -------
   Outputs
   -------
   x (1,:)  x coordinates
   y (1,:)  y coordinates

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

Children:

Common: Graphics/Plot2D

Back to the AerospaceUtils Module page