NRBLINE: Construct a straight line.
 
 Calling Sequence:
 
   crv = nrbline()
   crv = nrbline(p1,p2)
 
 INPUT:
 
 p1		: 2D or 3D cartesian coordinate of the start point.
 
 p2            : 2D or 3D cartesian coordinate of the end point.

 OUTPUT:
 
 crv		: NURBS curve for a straight line.
 
 Description:
 
   Constructs NURBS data structure for a straight line. If no rhs 
   coordinates are included the function returns a unit straight
   line along the x-axis.

    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 = nrbline([0.0 0.0 0.0]',[5.0 4.0 2.0]');
 nrbplot(crv,1);
 grid on;
 title('3D straight line.');
 hold off

Produces the following figure

Figure 1

Package: nurbs