def testAddParticles(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    ps.addParticles([(1.0, 2.0), (4.0, 5.0)], [(7.0, 8.0), (8.0, 7.0)], [(5.0, 4.0), (2.0, 1.0)])
    self.assertEqual(ps.numberOfParticles, 14)
    p = np.array(ps.positions)
    v = np.array(ps.velocities)
    f = np.array(ps.forces)
    self.assertEqual([1.0, 2.0], p[12].tolist())
    self.assertEqual([4.0, 5.0], p[13].tolist())
    self.assertEqual([7.0, 8.0], v[12].tolist())
    self.assertEqual([8.0, 7.0], v[13].tolist())
    self.assertEqual([5.0, 4.0], f[12].tolist())
    self.assertEqual([2.0, 1.0], f[13].tolist())
def testAddParticles(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    ps.addParticles([(1.0, 2.0), (4.0, 5.0)], [(7.0, 8.0), (8.0, 7.0)], [(5.0, 4.0), (2.0, 1.0)])
    self.assertEqual(ps.numberOfParticles, 14)
    p = np.array(ps.positions)
    v = np.array(ps.velocities)
    f = np.array(ps.forces)
    self.assertEqual([1.0, 2.0], p[12].tolist())
    self.assertEqual([4.0, 5.0], p[13].tolist())
    self.assertEqual([7.0, 8.0], v[12].tolist())
    self.assertEqual([8.0, 7.0], v[13].tolist())
    self.assertEqual([5.0, 4.0], f[12].tolist())
    self.assertEqual([2.0, 1.0], f[13].tolist())