Skip to content

Instantly share code, notes, and snippets.

@yoadsn
Created October 10, 2017 06:26
Show Gist options
  • Select an option

  • Save yoadsn/f403c9e16f32d323a146e83a71efddb0 to your computer and use it in GitHub Desktop.

Select an option

Save yoadsn/f403c9e16f32d323a146e83a71efddb0 to your computer and use it in GitHub Desktop.
const center = {
lat: 0,
lng: 0
};
const angle = (Math.random() - 0.5) * 360;
const distance = Math.random() * 50;
const point = getPointOnRadius(center, distance, angle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment