If you click on a point in the grid, this computes the angle you've created, plus its sine and cosine. It also (perhaps more usefully for scratch) computes the direction you'd need to travel in to get to the origin.