Let's do a quick draw to help us visualize the problem:
That's a generic parallelogram, to verify that it's a parallelogram we can see that

The opposite lengths are equal, then, let's do something similar here, let's say that

then

And the vector CD

Let's impose our condition

Then

By solving that equations we get
