def testAddParticles(self):
    ps = pyjet.ParticleSystemData3()
    ps.resize(12)
    ps.addParticles([(1.0, 2.0, 3.0), (4.0, 5.0, 6.0)], [(7.0, 8.0, 9.0), (8.0, 7.0, 6.0)], [(5.0, 4.0, 3.0), (2.0, 1.0, 3.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, 3.0], p[12].tolist())
    self.assertEqual([4.0, 5.0, 6.0], p[13].tolist())
    self.assertEqual([7.0, 8.0, 9.0], v[12].tolist())
    self.assertEqual([8.0, 7.0, 6.0], v[13].tolist())
    self.assertEqual([5.0, 4.0, 3.0], f[12].tolist())
    self.assertEqual([2.0, 1.0, 3.0], f[13].tolist())
def testAddParticles(self):
    ps = pyjet.ParticleSystemData3()
    ps.resize(12)
    ps.addParticles([(1.0, 2.0, 3.0), (4.0, 5.0, 6.0)], [(7.0, 8.0, 9.0), (8.0, 7.0, 6.0)], [(5.0, 4.0, 3.0), (2.0, 1.0, 3.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, 3.0], p[12].tolist())
    self.assertEqual([4.0, 5.0, 6.0], p[13].tolist())
    self.assertEqual([7.0, 8.0, 9.0], v[12].tolist())
    self.assertEqual([8.0, 7.0, 6.0], v[13].tolist())
    self.assertEqual([5.0, 4.0, 3.0], f[12].tolist())
    self.assertEqual([2.0, 1.0, 3.0], f[13].tolist())