Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UnitFactor.cs
1namespace Waher.Script.Units
2{
6 public class UnitFactor
7 {
8 private readonly AtomicUnit unit;
9 private readonly int exponent;
10
17 {
18 this.unit = Unit;
19 this.exponent = Exponent;
20 }
21
27 : this(Unit, 1)
28 {
29 }
30
36 public UnitFactor(string Unit, int Exponent)
37 : this(new AtomicUnit(Unit), Exponent)
38 {
39 }
40
45 public UnitFactor(string Unit)
46 : this(new AtomicUnit(Unit), 1)
47 {
48 }
49
53 public AtomicUnit Unit => this.unit;
54
58 public int Exponent => this.exponent;
59 }
60}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
A unit factor, used to form compound units.
Definition: UnitFactor.cs:7
UnitFactor(AtomicUnit Unit)
A unit factor, used to form compound units.
Definition: UnitFactor.cs:26
int Exponent
Exponent of the unit factor.
Definition: UnitFactor.cs:58
UnitFactor(string Unit)
A unit factor, used to form compound units.
Definition: UnitFactor.cs:45
UnitFactor(string Unit, int Exponent)
A unit factor, used to form compound units.
Definition: UnitFactor.cs:36
AtomicUnit Unit
Unit factor, without its exponent.
Definition: UnitFactor.cs:53
UnitFactor(AtomicUnit Unit, int Exponent)
A unit factor, used to form compound units.
Definition: UnitFactor.cs:16
Represents a unit.
Definition: Unit.cs:16