I need to fit a rectangle of fixed height (a) inside a known rectangle and have all four corners touch.
the top image is an example of a solved problem.. i don't need to know those numbers anymore-- i can figure them out.. but- i drew that one backwards (drew the white rectangle first then the black one around it) for sake of example..
so using the bottom image, how would i figure out the length of the white rectangle which fits inside the black one? (pretty obvious but the black rectangle is 5units x 8 and the rectangle needs to be 1 unit in one direction and can be scaled to length for the other dimension)
pretty much any relevant new info i can get for the white rectangle will be ok.. it doesn't have to be the length.. any of the angles will be ok too.
thanks for any help!