Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

make a function to calculate a point in coordinates. (javascript or python)

$
0
0

Hello,

my situation is as follows, I want to make a method (function) that takes one coordinate (which i would pass the method through the parameters) and x° and xMeters (also parameters of course). The new point (location) would be x meters in the direction of the angle. With those three inputs I want to calculate the "newCoordinate" and return that. The coordinate is given in degrees, minutes, seconds, so the output should be the same.

It should not be that hard, but sadly i am not that familiar with coordiantes. Any Help is appreciated!

thanks in advance!

Lucas



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>