* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)subr.c 5.1 (Berkeley) %G%";
/* Does not plot first point -- assumed that it is already plotted */
dda_line(ch
, x0
, y0
, x1
, y1
)
int x0
, y0
; /* already transformed to screen coords */
int x1
, y1
; /* untransformed */
if (abs(y1
-y0
) > length
)
deltaX
= (double) (x1
- x0
)/(double) length
;
deltaY
= (double) (y1
- y0
)/(double) length
;
for (i
=0; i
< length
; ++i
) {
screenmat
[currentx
][currenty
] = ch
;