NRBRECT: Construct NURBS representation of a rectangular curve.
 
 Calling Sequence:
 
   crv = nrbrect()
   crv = nrbrect(size)
   crv = nrbrect(width, height)
 
 INPUT:
 
   size	: Size of the square (width = height).
 
   width	: Width of the rectangle (along x-axis).
 
   height	: Height of the rectangle (along y-axis).

 OUTPUT:

   crv		: NURBS curve, see nrbmak. 
  
 
 Description:
 
   Construct a rectangle or square in the x-y plane with the bottom
   lhs corner at (0,0,0). If no rhs arguments provided the function
   constructs a unit square.

    Copyright (C) 2000 Mark Spink

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

Demonstration 1

The following code

 crv = nrbtform(nrbrect(2,1), vecrotz(35*pi/180));
 nrbplot(crv,4);
 axis equal
 title('Construction and rotation of a rectangular curve.');
 hold off

Produces the following figure

Figure 1

Package: nurbs