Files
MetroGauges-Old/MetroGauges/Model/PlatModel.cs
2026-02-23 17:02:55 +08:00

39 lines
834 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MetroGauges.Model
{
public class PlatModel
{
#region
//rbOC=true,其他建筑限界选中曲线外侧,否则选中内侧
public bool rbOC;
private int hac;
private int r;
public double Bs()
{
if (rbOC == true)
{
double Bs;
Bs = 1700 - (900 * hac / 1506) + 31593 / r + 15;
if (Bs < 1700)
{
Bs = 1700;
}
return Bs;
}
else
{
return 1700 + (900 * hac / 1506) + 31593 / r + 15;
}
}
#endregion
}
}