Example #1
0
 public Axis(Prefix prefix, Unit unit, int exponent = 1)
 {
     this.Prefix   = prefix;
     this.Unit     = unit;
     this.Exponent = exponent;
 }
Example #2
0
 public void Add(Prefix prefix, Unit unit, int exponent = 1)
 {
     Axes.Add(new Axis(prefix, unit, exponent));
 }
Example #3
0
 public Metric(Prefix prefix, Unit unit, int exponent = 1)
 {
     Add(prefix, unit, exponent);
 }
Example #4
0
 public Quantity(Exponential value, Prefix prefix, Unit unit)
 {
     this.Value  = value;
     this.Metric = new Metric(prefix, unit);
 }
Example #5
0
 public Quantity(Exponential value, Prefix prefix, Unit unit)
 {
     this.Value = value;
     this.Metric = new Metric(prefix, unit);
 }
Example #6
0
 /// <summary>
 /// Addes a prefix to the system
 /// </summary>
 /// <param name="name">The name of the prefix (for example "Kilo")</param>
 /// <param name="symbol">The symbol for the prefix (for example "k")</param>
 /// <param name="factor">The multiplication factor (in case of kilo, 1000)</param>
 /// <returns></returns>
 public Prefix AddPrefix(string name, string symbol, Exponential factor)
 {
     Prefix p = new Prefix(name, symbol, factor);
     Metrics.Prefixes.Add(p);
     return p;
 }