using getProjectedLocation with user provided lat,long doesn’t work


so the coordinates that have been printed to the console are the ones I provide and as this:

var pos = [51.688840, -0.060250]; 

Then I perform

pos.getProjectedLocation(bearing,10000);

and that returns the error.

When i’ve used it before I use Position.getInfo.position where the position is in this format:

lat: 616671881

lon: -718810

Looking at the memory it says they are numbers whereas the lat long in the pos I provide are floats. Should I convert my provided position to that format and how would I do this?