The actual distance is the hypothenuse of the triangle created. So if you are 25ft up a tree and the deer is at 10yds. The straight line distance is just over 11yds.
If you go back to geometry class and use the Pathagarean theorem which A squared plus B squared = C squared. The square root of C is the distance.