Archived
分散文件结构,添加了枚举类型的一个辅助类
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace XericLibrary.Runtime.MacroLibrary
|
||||
{
|
||||
public static partial class MacroMath
|
||||
{
|
||||
#region 常量
|
||||
|
||||
/// <summary>
|
||||
/// 弧度转角度
|
||||
/// </summary>
|
||||
public const float Rad2Ang = 57.295779513082320876798154814105f;
|
||||
/// <summary>
|
||||
/// 弧度转角度
|
||||
/// </summary>
|
||||
public const double Rad2Ang_d = 57.295779513082320876798154814105d;
|
||||
/// <summary>
|
||||
/// 弧度转角度
|
||||
/// </summary>
|
||||
public const decimal Rad2Ang_m = 57.295779513082320876798154814105m;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 角度转弧度
|
||||
/// </summary>
|
||||
public const float Ang2Rad = .01745329251994329576923690768489f;
|
||||
/// <summary>
|
||||
/// 角度转弧度
|
||||
/// </summary>
|
||||
public const double Ang2Rad_d = .01745329251994329576923690768489d;
|
||||
/// <summary>
|
||||
/// 角度转弧度
|
||||
/// </summary>
|
||||
public const decimal Ang2Rad_m = .01745329251994329576923690768489m;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 最大可接受的误差
|
||||
/// </summary>
|
||||
public const float MaxError = .000001f;
|
||||
/// <summary>
|
||||
/// 最大可接受的误差
|
||||
/// </summary>
|
||||
public const double MaxError_d = .0000001d;
|
||||
/// <summary>
|
||||
/// 最大可接受的误差
|
||||
/// </summary>
|
||||
public const decimal MaxError_m = .00000001m;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根号2的一半,用于快速平方根除以二
|
||||
/// </summary>
|
||||
public const float Sqrt22 = 0.70710678118654752440084436210485f;
|
||||
/// <summary>
|
||||
/// 根号2的一半,用于快速平方根除以二
|
||||
/// </summary>
|
||||
public const double Sqrt22_d = 0.70710678118654752440084436210485d;
|
||||
/// <summary>
|
||||
/// 根号2的一半,用于快速平方根除以二
|
||||
/// </summary>
|
||||
public const decimal Sqrt22_m = 0.70710678118654752440084436210485m;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 费根鲍姆常数,是周期分叉及混沌现象的一个比值,可用于人口变化,水滴周期等现象
|
||||
/// </summary>
|
||||
public const float Feigenbaum = 4.669201609102990671853203820466201617258185577475768632745651343004134f;
|
||||
/// <summary>
|
||||
/// 费根鲍姆常数,是周期分叉及混沌现象的一个比值,可用于人口变化,水滴周期等现象
|
||||
/// </summary>
|
||||
public const double Feigenbaum_d = 4.669201609102990671853203820466201617258185577475768632745651343004134d;
|
||||
/// <summary>
|
||||
/// 费根鲍姆常数,是周期分叉及混沌现象的一个比值,可用于人口变化,水滴周期等现象
|
||||
/// </summary>
|
||||
public const decimal Feigenbaum_m = 4.669201609102990671853203820466201617258185577475768632745651343004134m;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 表示无效的三维整数矢量
|
||||
/// </summary>
|
||||
public static readonly Vector3Int Vector3Int_Negate = new Vector3Int(-1, -1, -1);
|
||||
|
||||
/// <summary>
|
||||
/// 表示无效的二维整数矢量
|
||||
/// </summary>
|
||||
public static readonly Vector2Int Vector2Int_Negate = new Vector2Int(-1, -1);
|
||||
|
||||
/// <summary>
|
||||
/// 表示无效的整数
|
||||
/// </summary>
|
||||
public static readonly int Int_Negate = -1;
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user