getBounds();
bounds[0] = xNegBound; bounds[1] = xPosBound; bounds[2] = zNegBound; bounds[3] = zPosBound;
This function returns the current boundaries of the camera as a float array.
import processing.opengl.*; import carlucci.viewer.*; Viewer myViewer; void setup(){ size(800,600,OPENGL); myViewer = new Viewer(this); myViewer.setBounds(-500,500,-1000,1000); float[] currentBounds = myViewer.getBounds(); }