Package

libra

Permalink

package libra

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. libra
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Fraction[N <: XInt, D <: XInt] extends AnyRef

    Permalink

    Represents a fraction

    Represents a fraction

    N

    the numerator

    D

    the denominator

  2. final case class Quantity[A, D <: HList](value: A) extends AnyVal with Product with Serializable

    Permalink

    Represents a dimensional quantity

    Represents a dimensional quantity

    A

    the Numeric type of the quantity e.g. Int, Float, Double

    D

    the dimensions

    value

    the coefficient

    Example:
    1. scala> import spire.implicits._
      scala> import libra._, libra.si._
      scala> Quantity[Double, Term[Length, Metre, Fraction[1, 1]] :: HNil](5.5) // represents 5.5 m
      scala> res0: Quantity[Double, Term[Length, Metre, Fraction[1, 1]] :: HNil] = Quantity(5.5)
  3. type QuantityOf[A, D, U <: UnitOfMeasure[D]] = Quantity[A, ::[Term[D, U, Fraction[1, 1]], HNil]]

    Permalink

    Aliases a quantity with single unit

  4. type Term[D, U <: UnitOfMeasure[_], E <: Fraction[_, _]] = (U, E) with KeyTag[D, (U, E)]

    Permalink

    Represents a unit in a HList of units

  5. type TermValue[U <: UnitOfMeasure[_], E <: Fraction[_, _]] = (U, E)

    Permalink
  6. trait UnitOfMeasure[D] extends AnyRef

    Permalink

    Represents a unit of a given dimension

Value Members

  1. object Quantity extends Serializable

    Permalink
  2. package imperial

    Permalink
  3. package nonsi

    Permalink
  4. package ops

    Permalink
  5. package si

    Permalink

    SI units

Inherited from AnyRef

Inherited from Any

Ungrouped