初版ui提交

This commit is contained in:
lishuo committed 2022-03-24 09:36:59 +08:00
1 parent b3b882c51e
commit 57940568c9
85 files changed
+76969 -1624

No files matched your search

@@ -11,6 +11,8 @@ using System.Net.Http;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Networking;
using Mapbox.Utils;
using TurfCS;
namespace Assets.Scenes.Ride.Scripts
{
@@ -24,6 +26,12 @@ namespace Assets.Scenes.Ride.Scripts
}
return path;
}
public double Distance(Vector2d from, Vector2d to)
{
var pt1 = Turf.Point(new double[] { from.x, from.y });
var pt2 = Turf.Point(new double[] { to.x, to.y });
return Turf.Distance(pt1, pt2);
}
public static string SubStr(string str, int length)
{
var index = 0;