graph chart引入&骑行结果弹窗
This commit is contained in:
1 parent
40d118cea3
commit
96f3644b5b
2374 files changed
+485161
-2410
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#define Graph_And_Chart_PRO
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ChartAndGraph
|
||||
{
|
||||
[Serializable ]
|
||||
public struct DoubleVector2
|
||||
{
|
||||
public double x, y;
|
||||
public DoubleVector2(Vector2 v)
|
||||
{
|
||||
x = v.x;
|
||||
y = v.y;
|
||||
}
|
||||
public Vector2 ToVector2()
|
||||
{
|
||||
return new Vector2((float)x, (float)y);
|
||||
}
|
||||
public DoubleVector3 ToDoubleVector3()
|
||||
{
|
||||
return new DoubleVector3(x, y);
|
||||
}
|
||||
public DoubleVector2(double _x, double _y)
|
||||
{
|
||||
x = _x;
|
||||
y = _y;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user