protected void updateDerivedState ( ) { _planes [ 0 ] . fromPoints ( _vertices [ 0 ] , _vertices [ 1 ] , _vertices [ 2 ] ) ; // near _planes [ 1 ] . fromPoints ( _vertices [ 5 ] , _vertices [ 4 ] , _vertices [ 7 ] ) ; // far _planes [ 2 ] . fromPoints ( _vertices [ 1 ] , _vertices [ 5 ] , _vertices [ 6 ] ) ; // left _planes [ 3 ] . fromPoints ( _vertices [ 4 ] , _vertices [ 0 ] , _vertices [ 3 ] ) ; // right _planes [ 4 ] . fromPoints ( _vertices [ 3 ] , _vertices [ 2 ] , _vertices [ 6 ] ) ; // top _planes [ 5 ] . fromPoints ( _vertices [ 4 ] , _vertices [ 5 ] , _vertices [ 1 ] ) ; // bottom _bounds . fromPoints ( _vertices ) ; }
Sets the planes and bounding box of the frustum based on its vertices .