2021-04-22 19:29:59 +08:00
|
|
|
#define Graph_And_Chart_PRO
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace ChartAndGraph
|
|
|
|
|
{
|
2022-06-06 18:54:04 +08:00
|
|
|
[Serializable]
|
2021-04-22 19:29:59 +08:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|