package define
- Alphabetic
- Public
- Protected
Type Members
- class BaseUnit[U] extends UnitDefinition
Defines a type U as a base unit: A base unit represents the "reference" unit for an abstract quantity; for example Meter is the reference unit for the abstract quantity "length".
Defines a type U as a base unit: A base unit represents the "reference" unit for an abstract quantity; for example Meter is the reference unit for the abstract quantity "length". Each abstract quantity (length, time, mass, etc) has a unique base unit. Other units are defined using DerivedUnit. A BaseUnit instance is intended to be defined as an implicit value.
import coulomb.define._ trait Meter implicit val defineUnitMeter = BaseUnit[Meter](name = "meter", abbv = "m")
- U
the type representing base unit
- class DerivedUnit[U, D] extends UnitDefinition
Defines a type U as a derived unit represented by a coefficient times unit expression D
Defines a type U as a derived unit represented by a coefficient times unit expression D
import coulomb.define._ import coulomb.si._ trait Liter implicit val defineUnitLiter = DerivedUnit[Liter, Meter %^ 3](1, "liter", "l")
- U
the type representing this derived unit
- D
the type representing another unit, or unit expression, that U is defined in terms of
- trait UnitDefinition extends AnyRef
Methods and values common to all unit and temperature definitions
Value Members
- object BaseUnit
methods, constructors and other static definitions for BaseUnit
- object DerivedUnit
methods, constructors and other static definitions for DerivedUnit
- object PrefixUnit
methods, constructors and other static definitions for defining prefix units