Quantity.this

Creates a new quantity from another one with the same dimensions.

If Q is a QVariant, throws a DimensionException if the parsed quantity doesn't have the same dimensions as Q. If Q is a Quantity, inconsistent dimensions produce a compilation error.

  1. this(Q qty)
  2. this(Q qty)
    struct Quantity(N, alias dims)
    this
    (
    Q
    )
    (
    auto ref const Q qty
    )
  3. this(T scalar)

Meta