How to align objects in a different direction?

Executing Align command and specifying the first two source points and destination points, then it’s time for third point and the rectangular will be located to a different place