question: public static void superposeWithAngle ( ComplexVector vec1 , ComplexVector vec2 ) { int dim = vec1 . getDimension ( ) ; assert ( dim == vec2 . getDimension ( ) ) ; assert ( vec1 . getOpMode ( ) == ComplexVector . Mode . CARTESIAN || vec1 . getOpMode ( ) == ComplexVector . Mode . HERMITIAN ) ; assert ( vec2 . getOpMode ( ) == ComplexVector . Mode . POLAR_DENSE ) ; short c [ ] = vec2 . getPhaseAngles ( ) ; float [ ] coordinates = vec1 . getCoordinates ( ) ; for ( int i = 0 , j = 0 ; i < dim ; i ++ , j += 2 ) { coordinates [ j ] += CircleLookupTable . getRealEntry ( c [ i ] ) ; coordinates [ j + 1 ] += CircleLookupTable . getImagEntry ( c [ i ] ) ; } }
target:  Superposes vec2 with vec1. vec1 is in CARTESIAN mode. vec2 is in POLAR mode.