コード例 #1
0
 public void Update(CWindInfo windInfo)
 {
     MinSpeed = windInfo.WindSpeed;
     MaxSpeed = windInfo.WindSpeed;
     Accumulate(windInfo);
     ++m_countAcc;
 }
コード例 #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;
 }