How to find the position of the end part of a diagonal frame

How to find the position of the end part of a diagonal frame