Naughty Dog interview question

Mostly about the 3D maths.