39 lines
834 B
C#
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
|
|
|
|
}
|
|
}
|