-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathUnits.hx
48 lines (33 loc) · 1.11 KB
/
Units.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package moon.numbers.units;
import moon.numbers.units.base.*;
import moon.numbers.units.derived.*;
import moon.numbers.units.electric.*;
/**
* ...
* @author Munir Hussin
*/
@:dimension(Length = Length)
@:dimension(Mass = Mass)
@:dimension(Temperature = Temperature)
@:dimension(Time = Time)
@:dimension(Hertz = 1 / Time)
@:dimension(Area = Length^2)
@:dimension(Volume = Length^3)
@:formula(AreaDensity = Mass / Length^2)
@:formula(Density = Mass / Length^3)
@:formula(Velocity = Length / Time^1)
@:formula(Acceleration = Length / Time^2)
@:formula(Jolt = Length / Time^3)
@:formula(Snap = Length / Time^4)
@:formula(Viscocity = Length^2 / Time^1)
@:formula(VolumetricFlow = Length^3 / Time^1)
@:formula(Force = Mass * Length / Time^2)
@:formula(Energy = Mass * Length^2 / Time^2)
@:formula(Power = Mass * Length^2 / Time^3)
@:formula(Pressure = Mass / Length^1 * Time^2)
class Units
{
public function new()
{
}
}