endangle += d[2];