I'm not a mathematician, so please be patient!
I need formulas to calculate the two intersection points of a triangle and a square which are configured as shown in my image below.
The right-isosceles triangle and the square have fixed sizes. The triangle has both side lengths = $t$. The square has side lengths = $s$.
The triangle is always un-rotated and fixed at the origin $(0,0)$.
The square is rotated around it's center point $(x_3,y_3)$ by $r$ degrees.
The square will only move and rotate very, very slightly from the position below.
The intersection will always involve the triangle's hypotenuse and the same two sides of the square shown below.
I hope to use your solution to calculate $(x_1,y_1)$ and $(x_2,y_2)$ for various positions and rotations of the square.
Thank you in advance for your help and feel free to ask for more info if needed…