Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double angle = 45.0;
- double fromCenterLat = 49.9983451;
- double fromCenterLng = 36.2399642;
- double earthBigR = 6378.1;
- double earthSmallR = 6356.8;
- double V = 5;
- double t = 1;
- double newLat = fromCenterLat * (V * t * Math.Cos(angle)) * 360 / 2 * Math.PI * earthBigR;//X
- double newLng = fromCenterLng * (V * t * Math.Sin(angle)) * 180 / 2 * Math.PI * earthSmallR; //Y
- return new PointLatLng((newLat * 2 * Math.PI * earthBigR) / 360,
- (newLng * 2 * Math.PI * earthSmallR) / 180);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement