Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Speed.cs
1using System;
2
4{
9 public class Speed : ICompoundQuantity
10 {
15 public Speed()
16 {
17 }
18
22 public string Name => "Speed";
23
27 public Unit Reference => reference;
28
29 private static readonly Unit reference = new Unit(Prefix.None,
30 new UnitFactor(new AtomicUnit("m"), 1),
31 new UnitFactor(new AtomicUnit("s"), -1));
32
36 public Tuple<string, Prefix, UnitFactor[]>[] CompoundQuantities
37 {
38 get
39 {
40 return new Tuple<string, Prefix, UnitFactor[]>[]
41 {
42 new Tuple<string, Prefix, UnitFactor[]>("mph", Prefix.None,
43 new UnitFactor[]
44 {
45 new UnitFactor("SM"),
46 new UnitFactor("h", -1)
47 }),
48 new Tuple<string, Prefix, UnitFactor[]>("fps", Prefix.None,
49 new UnitFactor[]
50 {
51 new UnitFactor("ft"),
52 new UnitFactor("s", -1)
53 }),
54 new Tuple<string, Prefix, UnitFactor[]>("kph", Prefix.Kilo,
55 new UnitFactor[]
56 {
57 new UnitFactor("m"),
58 new UnitFactor("h", -1)
59 }),
60 new Tuple<string, Prefix, UnitFactor[]>("kmph", Prefix.Kilo,
61 new UnitFactor[]
62 {
63 new UnitFactor("m"),
64 new UnitFactor("h", -1)
65 })
66 };
67 }
68 }
69 }
70}
Represents an atomic unit.
Definition: AtomicUnit.cs:7
In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate ...
Definition: Speed.cs:10
Tuple< string, Prefix, UnitFactor[]>[] CompoundQuantities
Compound quantities. Must only use base quantity units.
Definition: Speed.cs:37
string Name
Name of compound quantity.
Definition: Speed.cs:22
Speed()
In everyday use and in kinematics, the speed of an object is the magnitude of its velocity (the rate ...
Definition: Speed.cs:15
Unit Reference
Reference unit of category.
Definition: Speed.cs:27
A unit factor, used to form compound units.
Definition: UnitFactor.cs:7
Represents a unit.
Definition: Unit.cs:16
Interface for physical compound quantities
Prefix
SI prefixes. http://physics.nist.gov/cuu/Units/prefixes.html
Definition: Prefixes.cs:11