Skip to content
Advertisement

Get new point coordinate by current Point coordinate, angle and distance in arcgis js api 4.x

I want to get coordinate (x,y) of a point B based on coordinate of point A and distance from the point A and an angle using Arcgis js API 4.x .

For example : i have point A in (a,b) the distance between A and B is 500m and the angle is 20°, how can i get (x,y) of B.

enter image description here

Advertisement

Answer

i fount the equation here, i implemented it and it works perfectly.

this is my simple :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement