public Axis(Prefix prefix, Unit unit, int exponent = 1) { this.Prefix = prefix; this.Unit = unit; this.Exponent = exponent; }
public void Add(Prefix prefix, Unit unit, int exponent = 1) { Axes.Add(new Axis(prefix, unit, exponent)); }
public Metric(Prefix prefix, Unit unit, int exponent = 1) { Add(prefix, unit, exponent); }
public Quantity(Exponential value, Prefix prefix, Unit unit) { this.Value = value; this.Metric = new Metric(prefix, unit); }
/// <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; }