A simple convenience wrapper around Unitful.jl that provides type aliases and exports units often used in aviation or automotive simulations.
] add https://github.com/mossr/Units.jl
These units are exported from Unitful with added type aliases.
Note, nmi
and kt
were added.
ft::Foot
m::Meter
mi::Mile
nmi::NauticalMile
kt::Knot
ge::EarthGravity
s::Second
minute::Minute
hr::Hour
°::Degree
rad::Radian
julia> using Units
julia> x = 1nmi
julia> x/hr == 1kt
true
julia> sim(x::Foot, y::Foot) = x^2 + y^2
julia> sim(1ft, 2ft)
5 ft^2
julia> sim(1m, 2m)
ERROR: MethodError
# ^ that's a good thing!