rectangle vs right triangle geometric properties