public void setKey ( int keyIndex , float time , final float [ ] values ) { int index = keyIndex * mFloatsPerKey ; Integer valSize = mFloatsPerKey - 1 ; if ( values . length != valSize ) { throw new IllegalArgumentException ( "This key needs " + valSize . toString ( ) + " float per value" ) ; } mKeys [ index ] = time ; System . arraycopy ( values , 0 , mKeys , index + 1 , values . length ) ; }
Set the time and value of the key at the given index