Workings behind the 3ds Camera

I just got a Nintendo 3DS and the feature that excited me the most was the 3D camera. Once I got the device I saw that it was not limited to the games but the camera could also be used to take 3D pictures. I was wondering how this is possible. I know that there are 2 cameras at the back but how does it work in details?
