public UnitCellBoundingBox getTranslatedBbs ( Vector3d translation ) { UnitCellBoundingBox translatedBbs = new UnitCellBoundingBox ( numOperatorsSg , numPolyChainsAu ) ; for ( int i = 0 ; i < numOperatorsSg ; i ++ ) { for ( int j = 0 ; j < numPolyChainsAu ; j ++ ) { translatedBbs . chainBbs [ i ] [ j ] = new BoundingBox ( this . chainBbs [ i ] [ j ] ) ; translatedBbs . chainBbs [ i ] [ j ] . translate ( translation ) ; } translatedBbs . auBbs [ i ] = new BoundingBox ( translatedBbs . chainBbs [ i ] ) ; } return translatedBbs ; }
Returns a new BoundingBoxes object containing the same bounds as this BoundingBoxes object translated by the given translation