RobotNet/RobotNet.RobotManager/Services/Simulation/Algorithm/MathExtension.cs
2025-10-15 15:15:53 +07:00

9 lines
323 B
C#

namespace RobotNet.RobotManager.Services.Simulation.Algorithm;
public class MathExtension
{
public static double ToRad => Math.PI / 180;
public static double ToDegree => 180 / Math.PI;
public static double CheckLimit(double value, double Max, double Min) => value < Max ? value > Min ? value : Min : Max;
}