PDA

Click to See Complete Forum and Search --> : Parallel Lines


Pkirsten2001
Dec 21st, 2000, 02:27 PM
Anybody know how to make one line parallel

to another.. Just explain it though... I dont

Like to use other peoples source... But if u cant

JUST explain it than i guess source is ok.

Thx

Dec 22nd, 2000, 08:53 AM
Prerequisites:
The slope of a line is:

slopeY = (y.2 - y.1)
SlopeX = (x.2 - x.1)
Slope = SlopeY / SlopeX

This is pretty simple. Just get the slope of the line to copy (I would advise leaving it in SlopeY/SlopeX format.) You can reverse engineer this to give you y.2 when you give it y.2 and slopeY, so do that. That gives you the location of the points of the line, and as long as the slopes are the same, the line is parallel.