AccelerationUnits.lengthPerTimeSquared constructor
AccelerationUnits.lengthPerTimeSquared(
- LengthUnits lu,
- TimeUnits tu
Constructs an instance based on length and time units.
Implementation
AccelerationUnits.lengthPerTimeSquared(LengthUnits lu, TimeUnits tu)
: super.misc(lu.valueSI / (tu.valueSI * tu.valueSI)) {
name = '${lu.name} per ${tu.singular} squared';
singular = '${lu.singular} per ${tu.singular} squared';
convToMKS = lu.valueSI / (tu.valueSI * tu.valueSI);
abbrev1 = lu.abbrev1 != null && tu.abbrev1 != null
? '${lu.abbrev1} / ${tu.abbrev1}\u{00b2}'
: null;
abbrev2 = lu.abbrev2 != null && tu.abbrev2 != null
? '${lu.abbrev2} ${tu.abbrev2}\u{207b}\u{00b2}'
: null;
metricBase = metricBase;
offset = offset.toDouble();
}