public void Update(CWindInfo windInfo) { MinSpeed = windInfo.WindSpeed; MaxSpeed = windInfo.WindSpeed; Accumulate(windInfo); ++m_countAcc; }
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; }