solve for angle