degree between two points latitude longitude c#
float lambda1 = (float)ConvertToRadians(lon1);
float lambda2 = (float)ConvertToRadians(lon2);
float fi1 = (float)ConvertToRadians(lon1);
float fi2 = (float)ConvertToRadians(lon2);
float y = Mathf.Sin(lambda2 - lambda1) * Mathf.Cos(fi2);
float x = Mathf.Cos(fi1) * Mathf.Sin(fi2) - Mathf.Sin(fi1) * Mathf.Cos(fi2) * Mathf.Cos(lambda2 - lambda1);
float degree = (float)ConvertToDegree(Mathf.Atan2(y, x));
Also in C#:
- go to next itiration in foreach C#
- c# odd even median
- C# sprint key
- iphone
- same click event diffrenet buttonms c#
- c# get last character of string
- unity html get request
- syntaxe switch c#
- no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'
- conditional compilation c#
- microsoft.portable.csharp.targets was not found vs 2019
- c# find where word is contained in a string
- c# make request to rest api
- string format c#
- how to convert float to int c#
- asp.net model display name
- unity up arrow input
- display none asp.net
- c# throw new exception
- C# delegate
- mouseposition unity
- debug.log unity
- asp.net core task iactionresult
- how to make error sound c#