MATLAB: How to translate a point according to a direction theta

translation

How to translate a point by a distance "d" according to a direction theta ?

Best Answer

translatedPoint = d*[cos(theta); sin(theta)]+[x;y];