// maxCharged->m_dX_r = kteta * tetatip * sin(fitip); // maxCharged->m_dY_r = kteta * tetatip * cos(fitip); maxCharged->m_dX_r = ionPos.x; maxCharged->m_dY_r = ionPos.y;