/// <param name="name">The name of the particle type</param> /// <param name="mass">The mass of the particle, in kg</param> /// <param name="color">The color of the particle for display</param> public ParticleInfo(string name, double mass, Color color, Shapes.Shapes3D shape = Shapes.Shapes3D.Sphere) { Name = name; Mass = mass; Color = color; Shape = shape; }
public void RegisterParticleType(string name, double mass, Color color, Shapes.Shapes3D shape = Shapes.Shapes3D.Sphere) { Dictionary.AddParticle(new ParticleInfo(name, mass, color, shape)); }