public ScaleBuilder(UnitConfiguration config, UnitMeta rootUnit) { this.config = config; precedingUnit = rootUnit; if (rootUnit.PhysicalUnit.IsDimensionless()) { throw new InvalidOperationException("The unit you start with should be associated with a physical unit to start a scale."); } }
internal UnitConfiguration() { UnitSystem = this; _defaultPrecision = 10; }
internal UnitMeta(Unit unit, UnitConfiguration config) { this.unit = unit; this.config = config; config.UnitGraph.AddUnit(unit); }