Viviani’s Theorem from the Law of Conservation of Energy