Quickly compute total and individual momenta before and after interactions. Supports 1D/2D collisions, elastic/inelastic cases, and vector inputs for accurate momentum analysis.