Posted by Dave on January 25, 2001 at 09:54:48:
In Reply to: checking for square posted by Dan on January 25, 2001 at 09:53:36:
To calculate the diagonal (corner to corner distance), use the formula:
length*length + width*width = diagonal*diagonal
Rearrange this to:
diagonal = square root( length*length + width*width )
21.26 = sqrt( 14*14 + 16*16)