mixRestitution method

double mixRestitution (double restitution1, double restitution2)

Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything.

@param restitution1 @param restitution2 @return

Implementation

static double mixRestitution(double restitution1, double restitution2) {
  return restitution1 > restitution2 ? restitution1 : restitution2;
}