Clamp input to glm::acos, add assertions