添加项目文件。
This commit is contained in:
38
MetroGauges/Model/PlatModel.cs
Normal file
38
MetroGauges/Model/PlatModel.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user