Physics, Science, Programming, Deep Dives, Thoughts And Theory.
self.molecule=molecule self.position=np.array([x_i for x_i in position]) self.velocity=np.array([v_i for v_i in velocity]) self.mass=mass self.color=color #Setters for position, velocity, mass and color def set_position(self,position): self.position=np.array([x_i for x_i in position]) def