This repository has been archived on 2025-09-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
XericLibrary-OLD/Runtime/MicroLibrary/MacroConst.cs

99 lines
2.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}