How would you find the distance between the center of a square and the edge of that square for any given angle?
Say you have a square with a diagonal length of R. Say you also have a line passing through the center of the square that is at angle A from the x axis. You then find an intersection between the square’s edge and the line. If you want to find the distance between this point and the center of the square as a function of angle A, what would that function be?