MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / bounceOff

Method bounceOff

code/algs4/Particle.java:172–196  ·  view source on GitHub ↗

Updates the velocities of this particle and the specified particle according to the laws of elastic collision. Assumes that the particles are colliding at this instant. @param that the other particle

(Particle that)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected