示例#1
0
        /// <summary>
        /// Einlesen eines Geschwindigkeitsvetors aus einem Text, wobei die Wunscheinheit durch ein
        /// Unit- Enum definiert wird
        /// </summary>
        /// <param name="ValueTxt"></param>
        /// <param name="unit"></param>
        /// <param name="t"></param>
        /// <returns></returns>
        public static bool TryParse(string ValueTxt, Unit unit, out N.Time t)
        {
            t = null;
            double Value;

            if (double.TryParse(ValueTxt, out Value))
            {
                t = Constructor[unit](Value);
                return(true);
            }
            return(false);
        }
 public static PowerInWatt <Mag.One> Watt(Energy E, Time t)
 {
     return(new PowerInWatt <Mag.One>(Energy.Ws(E).Value / Time.Sec(t).Value));
 }
示例#3
0
 public override Time ConvertInT(Time t)
 {
     return(Time.Sec(t));
 }
示例#4
0
 public VelocityInMeterPerSec(Length S, Time t) : base(S, t)
 {
 }
示例#5
0
 public TimeInSec(Time Value) : base(Value)
 {
 }
示例#6
0
 public override Time ConvertInT(Time T)
 {
     return(Time.Sec(T));
 }
示例#7
0
 public TimeInHours(Time Value) : base(Value)
 {
 }