This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -0,0 +1,25 @@
#if !NETCOREAPP3_1
using System;
using System.Runtime.CompilerServices;
namespace WPFDark.Internals
{
internal static class MathF
{
// ReSharper disable once InconsistentNaming
public const float PI = 3.14159265358979f;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Sqrt(float d) => (float) Math.Sqrt(d);
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Atan2(float y, float x) => (float) Math.Atan2(y, x);
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Sin(float a) => (float) Math.Sin(a);
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float Cos(float a) => (float) Math.Cos(a);
}
}
#endif