Given the four corners $(x, y)$ of a square, the center $(x, y)$, and a starting direction (ex: $45^\circ$) around a $360^\circ$ rotation ($0^\circ/360^\circ$ at the top), how do you find out the intercept on the perimeter as the direction is incrementally stepped?
What I'm basically doing is taking a circle of radius $(r)$, determining it's area $(A)$, converting that to length $(L)$ of the sides of the square, and then determining the corners $(x, y)$ given the starting center point and the above described direction. This allows for the square to rotate it's starting position depending on the direction. I used the equations below to determine the corners (assuming $(x, y)$ is the center of the circle):
$$\left(x - \frac{L}{2} * (\sin(\text{rotation}) - \cos(\text{rotation})), y + \frac{L}{2} * (\sin(\text{rotation}) + \cos(\text{rotation}))\right)$$ $$\left(x + \frac{L}{2} * (\sin(\text{rotation}) + \cos(\text{rotation})), y + \frac{L}{2} * (\sin(\text{rotation}) - \cos(\text{rotation}))\right)$$ $$\left(x + \frac{L}{2} * (\sin(\text{rotation}) - \cos(\text{rotation})), y - \frac{L}{2} * (\sin(\text{rotation}) + \cos(\text{rotation}))\right)$$ $$\left(x - \frac{L}{2} * (\sin(\text{rotation}) + \cos(\text{rotation})), y - \frac{L}{2} * (\sin(\text{rotation}) - \cos(\text{rotation}))\right)$$

I am guessing you mean what would be the point on the perimeter of a square from a line in polar coordinates as $\theta=\theta_0\implies y=x\,\tan(\theta)$; this equation just gives the line with slope $\tan(\theta)$. This is the same as asking what the “sine and cosine” for a square are. Imagine this as the “square analogue” of the trigonometric functions defined in parametric coordinates as:
$$\mathrm{(cos_ \square(\theta),sin_ \square(\theta))=a|x|+a|y|=1}$$
To find theses “square” functions, simply construct and solve for x in terms of theta only:
$$\mathrm{y=x\,tan(\theta),a|x|+a|y|=1\implies a|x|+a|x||tan(\theta)|=1\implies a|x|(1+|tan(\theta)|)=1\implies |x|=\frac 1{a|tan(\theta)|+a}\implies x=cos_\square(\theta)=\pm \frac 1{a|tan(\theta)|+a},y=sin_\square(\theta) \pm\frac {tan(\theta)}{a|tan(\theta)|+a}}$$
These functions have that the tangent square function is just the tangent function and the (co)secant analogous are just reciprocals of x and y as seen above.
Values for the square functions. You really just need values from $0\le\theta\le\frac{\pi}{4}$ as you can either switch x and y or negate the results based on the quadrant; here is an explanation. Remember that $$\mathrm{x=cos_\square(\theta)=\pm \frac 1{a|tan(\theta)|+a},y=sin_\square(\theta)= \pm\frac {tan(\theta)}{a|tan(\theta)|+a}:}$$
$\theta=0:x=\frac1a,y=0;\theta=\frac\pi6:x=\frac{1}{\frac a{\sqrt3}+a},y=\frac{\sqrt3}{\sqrt3a+3a},\theta=\frac\pi4:x=y=\frac{1}{2a}$
This will also mean that the rest of these “square” based trigonometric functions are. In fact, this method always gives the new modified tangenr function as tan(θ) because of the setup:
$$\mathrm{\frac{y}{x}=tan_\square(\theta)=\frac{\pm\frac {tan(\theta)}{a|tan(\theta)|+a}}{\pm \frac 1{a|tan(\theta)|+a}}=tan(\theta)\implies cot_{\square}(\theta)=cot(\theta),sec_{\square}(\theta)= \frac{1}{cos_\square(\theta)}=\pm(a|tan(\theta)|+a),csc_\square(\theta)=\frac{1}{sin_{\square}}=\frac{1}{ \pm\frac {tan(\theta)}{a|tan(\theta)|+a}}= \pm\frac{a|tan(\theta)|+a} {tan(\theta)}=\pm (a\,sgn(tan(\theta))+a\,cot(\theta))}$$ Please see this
for proof of these equations and visuals of the other (co)secant graphs. Tell me if you meant something else. Please correct me and give me feedback.