You want to allow things to flex a little -- or you'll be in deep shit or water or both.
You might get by with one 45 -- but with two (if you have room in the 12", you might just get it perfectly aligned.
http://www.plumbingsupply.com/pvc.html