public IEnumerable <Tuple <PhysicalParticle, PhysicalParticle> > SelectPairs(KinematicsSystem system) { for (int i = 0; i < system.Particles.Count; i++) { for (int j = i + 1; j < system.Particles.Count; j++) { yield return(new Tuple <PhysicalParticle, PhysicalParticle>(system.Particles[i], system.Particles[j])); } } }
public KinematicsIntegrator(KinematicsSystem system, IConstraintSolver constraint) { System = system; this.constraint = constraint; }