arturoc/ofxOpenNI2 — pull request #2 by elliotwoods (2011-10-15 14:47:28+00:00)
Title: added vectorised cameraToWorld  function

added

ofPoint cameraToWorld(const ofVec2f& c);
void cameraToWorld(const vector& c, vector& w);

The functions aren't symmetric now, and making them symmetric involves adding lots more functions. Currently we now have:
ofPoint worldToProjective(const ofPoint & p);
ofPoint worldToProjective(const XnVector3D & p);

ofPoint projectiveToWorld(const ofPoint & p);
ofPoint projectiveToWorld(const XnVector3D & p);

ofPoint cameraToWorld(const ofVec2f& c);
void cameraToWorld(const vector& c, vector& w);

To reinforce the importance of 2D and 3D i used ofVec3f rather than ofPoint in the vector case
perhaps could be more verbose that the ofPoint functions are specifically 3D (by using ofVec3f).

I'd also vote to skip the XnVector3D functions, under the presumtion that users will use toXn()