示例#1
0
 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]));
         }
     }
 }
示例#2
0
        public KinematicsIntegrator(KinematicsSystem system, IConstraintSolver constraint)
        {
            System = system;

            this.constraint = constraint;
        }