How to calculate a new position having angle and distance?

How to calculate a new position having angle and distance in two-dimentional space?
Thanks!

You can use polar coordinates.

var x = dist * cos(angle * Mathf.Deg2Rad);
var y = dist * sin(angle * Mathf.Deg2Rad);
var newPosition = currentPosition;
newPosition.x += x;
newPosition.y += y;

Or solve it using a Quaternion (assumes camera is looking towards positive ā€˜Z’). Also assumes Vector3.right is the basis for the angle:

  var q = Quaternion.AngleAxis(angle, Vector3.forward);
  newPosition = currentPosition + q * Vector3.right * distance;