So this is just a diagonal calculator , on scratch. Just to be clear, I am using the noun diagonal , not the adjective. If you forgot / don't know the definition , here it is: a straight line joining two opposite corners of a square, rectangle, or other polygon. Enjoy!