How to make the mouse follow the camera coordinates

Im kind of stuck. I have an object i between camera.begin(0 and camera.end() that I want the mouse to interact with. Do I have to put the mouse x, y and z into an object of the camera class. And I thinking of the solution correctly?

If anyone knows how to do this let me know. Tnak you.

Hi, ofCamera has a few methods for dealing with such, as:
ofVec3f worldToScreen(ofVec3f WorldXYZ, ofRectangle viewport = ofRectangle()) const;
ofVec3f screenToWorld(ofVec3f ScreenXYZ, ofRectangle viewport = ofRectangle()) const;

ofVec3f worldToCamera(ofVec3f WorldXYZ, ofRectangle viewport = ofRectangle()) const;

ofVec3f cameraToWorld(ofVec3f CameraXYZ, ofRectangle viewport = ofRectangle()) const;

thanks I will try these out.