Help with math formula to maintain distance along the x-axis between an outer cube and an inner cube of 0.88 while scaling.
Outer cube dimensions = x=4.4, y=11.4, z=11 Inner cube dimensions = x=2.64, y=9.48, z=16.8
My thought process was to scale everything along the x-axis then reduce the outer cubes faces so it will maintain the 0.88 distance between the two. I'm just having an issue with the formula required to do this.
If I scale the object along the x-axis 3 times it gives me this see image below:
But I'm trying to get something like this scale / adjust the outer faces of the cube along the x-axis so the distance maintains the 0.88 distance.
When I do this graphically it comes out the scale I should use is 0.7339...How can I do this using a formula?
PS: I know I can select the outer faces and scale in the x-axis direction till it reaches 0.88.
I'm looking for a formula due to the fact that this is going to be used in Geometry Nodes to make different magnet holders parametric which will then be 3D printed to test different Halbach array setups.