|
-
Dec 21st, 2000, 03:27 PM
#1
Thread Starter
New Member
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
Its not whether u win or lose but
how u place the blame 
-
Dec 22nd, 2000, 09:53 AM
#2
parallel lines solution
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|