MCPcopy Create free account
hub / github.com/csaez/mscreen / addPoint

Method addPoint

tests/test_stress.py:94–99  ·  view source on GitHub ↗
(self, state=0)

Source from the content-addressed store, hash-verified

92 mscreen.clear()
93
94 def addPoint(self, state=0):
95 p = Particle()
96 p.id = len(self.particles)
97 p.state = state
98 self.particles.append(p)
99 return p
100
101 def addState(self):
102 index = len(self._states)

Callers 2

simulateMethod · 0.95
bounceFunction · 0.80

Calls 1

ParticleClass · 0.85

Tested by

no test coverage detected