Rotation
Use your mouse to move the centre and the change the angle of rotation. Find a centre and an angle of rotation that will rotate the yellow triangle into the rectangle to complete it.
The centre is at:
x:
y:
Result: