public void setPerspective ( ) { double cameraZ = ( ( height / 2.0 ) / Math . tan ( Math . PI * 60.0 / 360.0 ) ) ; matrixMode ( MatrixMode . PROJECTION ) ; resetMatrix ( ) ; glu . gluPerspective ( Math . PI / 3.0 , this . width / this . height , cameraZ / 10.0 , cameraZ * 10.0 ) ; matrixMode ( MatrixMode . MODELVIEW ) ; resetMatrix ( ) ; }
Sets a default perspective .