I have a square with a side length of 100 cm. I then want to rotate a square clockwise by ten degrees so that it is scaled and contained inside the existing square.
The image below is what I'm attempting, but with a square, not a triangle. (Image created by Alain Matthes).

And here is the square I'm trying to create, so hopefully this helps:
So my question, how do I determine the distance between the original point and the rotated point? Or, how do I determine the location of the rotated point on its own, independent of the original square? I'm not sure what formula I would use in either instance.
Any assistance in this endeavor would be greatly appreciated.

Let's say your original 4 points are, going counterclockwise from the origin, $$(0,0),(100,0),(100,100),(0,100)$$
You want to rotate clockwise, which means the point that was on the origin will go up to $(0,a)$ and the point that was at $(0,100)$ will go to $(a,100)$. And if you draw out this new situation with all 4 little wedges filling in the space between your new square and the old, you can make triangles with a small leg of $a$ and a long leg of $b$ and you see that $a+b=100$.
So you have a system of two equations and two unknowns. $$a+b=100\\tan(10^{\circ})=\frac{a}{b}$$
This gives $a\approx14.99$. Your new 4 points will be $$(0,14.99),(85.01,0),(100,85.01),(14.99,100)$$
Additionally, each side length was scaled by $0.8632$
EDIT: How to solve the system without a calculator solve() function.