changed function order for better docs
calculation of elastic collision time