[comp.graphics] Algorithm Needed, if possible...

shan@ihlpl.ATT.COM (Califf) (08/23/88)

I am designing a graphics package, using "C", which supports isometric lines.
I have a function written which draws a line at a particular angle, but I
am now trying to put in a zooming feature which would allow a person to do
more detailed drawings. I am using a graphics package which does all line
clipping for me, but the problem occurs when I try to scale an isometric line.
If I have an isometric line which connects to another isometric line, after
scaling both of those lines, I have to recalculate the x2, y2 endpoints to
make sure the lines, after being scaled, are still isometric. But this causes
problems because after the recalculation, sometimes the connecting lines shift
because the recalulated endpoint of the first line does not match exactly with
the beginning endpoint of the second line. I have tried all sorts of ways of 
solving the problem, but I can't find anyway around it. Could anybody out there
help!!

Thanks in Advance.
                          Shannon Califf  
                          Path: ihnp4!ihlpl!shan
                          Phone: (312)-979-6994