xref: /csrg-svn/lib/libplot/grn/move.c (revision 48511)
1*48511Sbostic /*-
2*48511Sbostic  * Copyright (c) 1980, 1986 The Regents of the University of California.
3*48511Sbostic  * All rights reserved.
4*48511Sbostic  *
5*48511Sbostic  * %sccs.include.proprietary.c%
629814Ssklower  */
729814Ssklower 
829814Ssklower #ifndef lint
9*48511Sbostic static char sccsid[] = "@(#)move.c	6.2 (Berkeley) 04/22/91";
10*48511Sbostic #endif /* not lint */
1129814Ssklower 
1229814Ssklower #include "grnplot.h"
1329814Ssklower 
1429814Ssklower /*---------------------------------------------------------
1529814Ssklower  *	This routine moves the current point to (x,y).
1629814Ssklower  *
1729814Ssklower  *	Results:	None.
1829814Ssklower  *	Side Effects:	If current line, close it.
1929814Ssklower  *---------------------------------------------------------
2029814Ssklower  */
2129814Ssklower move(x, y)
2229814Ssklower int x, y;
2329814Ssklower {
2429814Ssklower 	if (!ingrnfile) erase();
2529814Ssklower     if (invector) endvector();
2629814Ssklower     curx = x;
2729814Ssklower     cury = y;
2829814Ssklower }
29