Setting diagonal mirroring via Jython (user to set points)
<p>Trying to get my my head around this program we need to create
What is needed is as per the notes:
create a function named
arbitraryMirror() that allows the user to place a mirror at an arbitrary angle, causing an intersect and therefore mirror the image.</p>

<p>This will need to be done on either a square or rectangle picture.</p>

<p>As per the pics below, this is the Output of what is required.</p>

<p><a href="https://i.stack.imgur.com/p31tA.png" rel="nofollow">Output</a></p>

<p>I know how to mirror a pic (as shown below) with a square image, but i cannot work out if this can also be done with a rectangle image?</p>

<p><a href="https://i.stack.imgur.com/rBFKH.png" rel="nofollow">Cross</a></p>

<p>I had a look at a method of using y=mx+b but it seems overcomplicated?
Maybe there is some coordinate geometry i need? Or algebra?
Any help would be greatly appreciated!</p>

<p>I do not have an answer for you but would love to know myself</p>

python jython jes