FromKMPH() public static method

public static FromKMPH ( double kmph ) : Speed
kmph double
return Speed
Exemplo n.º 1
0
 public Wind(uint?wind_kph, uint?wind_degrees)
 {
     if (wind_kph != null && wind_degrees != null)
     {
         Degree = (uint)wind_degrees;
         Speed  = Speed.FromKMPH((uint)wind_kph);
     }
     else
     {
         Degree = 0;
         Speed  = Speed.FromKMPH(0);
     }
 }
Exemplo n.º 2
0
 public Wind(WindTotal wind)
 {
     Degree = (uint)wind.direction;
     Speed  = Speed.FromKMPH((uint)wind.speed);
 }
Exemplo n.º 3
0
 public Wind(Core.Models.Caiyun.JsonContract.Wind wind)
 {
     Degree = (uint)wind.direction;
     Speed  = Speed.FromKMPH((uint)wind.speed);
 }
Exemplo n.º 4
0
 public Wind(HeWeather.JsonContract.WindContract wind)
 {
     Degree = uint.Parse(wind.deg);
     Speed  = Speed.FromKMPH(uint.Parse(wind.spd));
 }