Replaced a number of uses of glm::angle since it doesn't return the correct value in all cases.