private GeometryHandler.Vector takePointingSample() { GeometryHandler.Vector vector = new GeometryHandler.Vector(); while (!this.geometryHandler.vectorOK(vector)) { vector.reset(jointsToTrack[0], jointsToTrack[1]); // (RIGHT_ELBOW, RIGHT_HAND) } return vector; }
private GeometryHandler.Vector takePointingSample() { GeometryHandler.Vector vector = new GeometryHandler.Vector(); if (isTrackableUser(Fubi.getClosestUserID())) { while (!this.geometryHandler.vectorOK(vector)) { vector.reset(jointsToTrack[0], jointsToTrack[1]); // (RIGHT_ELBOW, RIGHT_HAND) } } else { Thread.Sleep(10); // Wait for 10ms } return vector; }