Hi guys
I have two co-ordinates (x1,y1) and (x2,y2) and gradient,m1 (y2-y1/x2-x1)
A straight line is drawn between these two points.
3 more lines to be drawn each rotated by 90 degrees so when they are joined together it gives a shape very similar to a rectangle.
These lines will be represented by equations similar to y=mx+c.
A variable width, which is the width of the rectangle is going to be the length of two of the lines. This needs to be adjusted in the equations as well.
I am a bit stuck with this. Can someone please help me with this??? I need equations for these lines.
Thanks
I have two co-ordinates (x1,y1) and (x2,y2) and gradient,m1 (y2-y1/x2-x1)
A straight line is drawn between these two points.
3 more lines to be drawn each rotated by 90 degrees so when they are joined together it gives a shape very similar to a rectangle.
These lines will be represented by equations similar to y=mx+c.
A variable width, which is the width of the rectangle is going to be the length of two of the lines. This needs to be adjusted in the equations as well.
I am a bit stuck with this. Can someone please help me with this??? I need equations for these lines.
Thanks