GUI桌面环境

This commit is contained in:
2026-03-01 17:03:49 +08:00
parent 545f40cf95
commit f0a9223520
162 changed files with 9170 additions and 135 deletions

12
utils/FloatExtensions.cs Normal file
View File

@@ -0,0 +1,12 @@
using System;
namespace CMLeonOS.Utils
{
public static class FloatExtensions
{
public static float Map(this float value, float inMin, float inMax, float outMin, float outMax)
{
return (value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin;
}
}
}