Concept of Discrete Mathematics behind the creation of KINECT

This picture shows a kinect game and it is a beta version as well. Which concept of DISCRETE MATHEMATICS is used behind making of kinect and why?
From how far can this beta version game detect our motion?

