experimental.units.si

International System of Units (SI) units and prefixes for use with std.units.

The definitions have been taken from the NIST Special Publication 330, The International System of Units, 2008 edition.

Todo:

  • Do something about the derived unit types being expanded in the generated documentation.

Members

Aliases

Ampere
alias Ampere = BaseUnit!("Ampere", "A")

SI base units.

Candela
alias Candela = BaseUnit!("candela", "cd")
Undocumented in source.
Gram
alias Gram = BaseUnit!("gram", "g")
Undocumented in source.
Kelvin
alias Kelvin = BaseUnit!("Kelvin", "K")
Undocumented in source.
Metre
alias Metre = BaseUnit!("metre", "m")
Undocumented in source.
Mole
alias Mole = BaseUnit!("mole", "mol")
Undocumented in source.
Radian
alias Radian = BaseUnit!("radian", "rad")
Undocumented in source.
Second
alias Second = BaseUnit!("second", "s")
Undocumented in source.
SiPrefixSystem
alias SiPrefixSystem = PrefixSystem!(10, )

The full std.units.PrefixSystem of SI prefixes.

Steradian
alias Steradian = BaseUnit!("steradian", "sr")
Undocumented in source.
meter
alias meter = metre
Undocumented in source.

Functions

cos
auto cos(Q angle)
Undocumented in source. Be warned that the author may not have intended to support it.
expi
auto expi(Q angle)
Undocumented in source. Be warned that the author may not have intended to support it.
sin
auto sin(Q angle)
Undocumented in source. Be warned that the author may not have intended to support it.
tan
auto tan(Q angle)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

PI_OVER_180
enum PI_OVER_180;
Undocumented in source.
_180_OVER_PI
enum _180_OVER_PI;
Undocumented in source.
ampere
enum ampere;
Undocumented in source.
becquerel
enum becquerel;

SI derived units.

candela
enum candela;

SI base units.

coulomb
enum coulomb;

SI derived units.

degree
enum degree;

SI scaled units for angles.

farad
enum farad;

SI derived units.

gram
enum gram;

SI base units.

gray
enum gray;
henry
enum henry;

SI derived units.

hertz
enum hertz;
joule
enum joule;
katal
enum katal;

SI derived units.

kelvin
enum kelvin;
kilogram
enum kilogram;

SI base units.

lumen
enum lumen;
lux
enum lux;

SI derived units.

metre
enum metre;
mole
enum mole;

SI base units.

newton
enum newton;
ohm
enum ohm;
pascal
enum pascal;

SI derived units.

radian
enum radian;

SI supplementary units for angles.

second
enum second;

SI base units.

siemens
enum siemens;
sievert
enum sievert;

SI derived units.

steradian
enum steradian;

SI supplementary units for angles.

tesla
enum tesla;
volt
enum volt;
watt
enum watt;
weber
enum weber;

SI derived units.

Mixins

__anonymous
mixin DefinePrefixSystem!(SiPrefixSystem)
Undocumented in source.

Meta