using UnityEngine;
using o0.Num;
using o0.Geometry;

namespace SmartBowSDK
{
    /// <summary>
    /// AOT适配器
    /// </summary>
    public class AOTAdapter : MonoBehaviour
    {
        static AOTAdapter()
        {
            //o0.Num泛型类的显式创建
            Num<Vector<double>>.Plus = (a, b) => a + b;
            Num<Vector<double>>.Minus = (a, b) => a - b;
            Num<Vector<double>>.Multiply = (a, b) => a * b;
            Num<Vector<double>>.Divide = (a, b) => a / b;
            Num<Vector<double>>.Rate = (a, b) => a * b;
        }
    }
}
