Esempio n. 1
0
 public void Update(CWindInfo windInfo)
 {
     MinSpeed = windInfo.WindSpeed;
     MaxSpeed = windInfo.WindSpeed;
     Accumulate(windInfo);
     ++m_countAcc;
 }
Esempio n. 2
0
 private void Accumulate(CWindInfo windInfo)
 {
     m_accSpeed  += windInfo.WindSpeed;
     m_accXValue += Math.Cos(windInfo.WindDirection * (Math.PI / 180)) * windInfo.WindSpeed;
     m_accYValue += Math.Sin(windInfo.WindDirection * (Math.PI / 180)) * windInfo.WindSpeed;
 }