Packages

p

coulomb

define

package define

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. 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

  2. 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

  3. trait UnitDefinition extends AnyRef

    Methods and values common to all unit and temperature definitions

Value Members

  1. object BaseUnit

    methods, constructors and other static definitions for BaseUnit

  2. object DerivedUnit

    methods, constructors and other static definitions for DerivedUnit

  3. object PrefixUnit

    methods, constructors and other static definitions for defining prefix units

Ungrouped