This is an elastic collision simulation in two dimensions using vector.js