finished implementing angular resolution component of objective function