There are keybinds in game that you can set for certain camera angles (If you are refering to WoW). It seems like you're making it more complicated than it needs to be.