Problem with this would be that it doesn't account for cases when the slope is rotated in a different direction
edit: nevermind I JUST realized
LOOOLLL