Area.fromLengths constructor

Area.fromLengths(
  1. Length l1,
  2. Length l2
)

Constructs a Area by multiplying two lengths together.

Implementation

Area.fromLengths(Length l1, Length l2)
    : super(
          l1.valueSI * l2.valueSI,
          Area.squareMeters,
          math.sqrt(l1.relativeUncertainty * l1.relativeUncertainty +
              l2.relativeUncertainty * l2.relativeUncertainty));