public int getBeginning ( int index ) { //Test if the last end is the new beginning if ( index == ( pastIndex + 1 ) ) { return previousEnd + 1 ; } // Otherwise, find it! int newBeginning = 0 ; for ( int i = 0 ; i < index ; i ++ ) { newBeginning += getNodeCount ( i ) ; } pastIndex = index ; previousBegin = newBeginning ; return newBeginning ; }
Gets the beginning index of a geometry s points given the index of the geometry within the array .