本文整理汇总了C#中System.Environment.SurfaceArea方法的典型用法代码示例。如果您正苦于以下问题:C# Environment.SurfaceArea方法的具体用法?C# Environment.SurfaceArea怎么用?C# Environment.SurfaceArea使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Environment
的用法示例。
在下文中一共展示了Environment.SurfaceArea方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Eyring
///<summary>
/// Sabine Reverberation Time : T60 = 0.161V/ln(1-a)S
///</summary>
public static void Eyring(Environment.Scene Room, double volume, ref double[] T60)
{
T60 = new double[8];
if (Room == null) return;
double TA;
for (int t = 0; t <= 7; t++)
{
TA = 0;
for (int q = 0; q <= Room.Count() - 1; q++)
{
TA += (Room.SurfaceArea(q) * (-System.Math.Log(1 - Room.AbsorptionValue[q].Coefficient_A_Broad(t),System.Math.E)));
}
T60[t] = 0.161 * volume / (TA + 4 * Room.Attenuation(0)[t] * volume);
}
}
示例2: Sabine
///<summary>
/// Sabine Reverberation Time : T60 = 0.161V/A
///</summary>
public static void Sabine(Environment.Scene Room, double volume, ref double[] T60)
{
T60 = new double[8];
if (Room == null) return;
double TA;
for (int t = 0; t <= 7; t++)
{
TA = 0;
for (int q = 0; q <= Room.Count() - 1; q++)
{
TA += (Room.SurfaceArea(q) * Room.AbsorptionValue[q].Coefficient_A_Broad(t));
}
T60[t] = (0.161 * (volume / (TA + (4 * Room.Attenuation(0)[t] * volume))));
}
}