Put camera projection calculation into Camera class.