Can you generalise this for any right angled triangle with sides of length $a$, $b$ and $c$, where $b$ is the hypotenuse?