Syntax
[C/C++:]
void gDrawLineBy2D(float dx, float dy);
void gDrawLineBy3D(float dx, float dy, float dz);
void gDrawLineTo2D(float x, float y);
void gDrawLineTo3D(float x, float y, float z);
[F90:]
subroutine gDrawLineBy2D(dx, dy)
subroutine gDrawLineBy3D(dx, dy, dz)
subroutine gDrawLineTo2D(x, y)
subroutine gDrawLineTo3D(x, y, z)
real, intent(in) :: dx,dy,dz
real, intent(in) :: x,y,z
Arguments
dx,dy,dz
Coordinate increments (in the current units) from the current drawing position to the end point
x,y,z
The absolute coordinates (with respect to the current axes and in the current units) of the end point
Description
The gDrawLine set of routines draws a straight line from the current drawing position to the specified end point using relative or absolute coordinates. Both 2D and 3D routines are provided.
Where a mixture of 2D and 3D routines are used, the
current Z coordinate is assumed to be constant during the drawing of a 2D vector (the default being 0.0).
The current drawing position is updated to be the end of the line drawn by these routines.
See Also
gDrawLinexx2D UsagegDrawLinexx3D Usage