VoltageRange
public struct VoltageRange : Equatable, Hashable
Specifies the minimum (inclusive) and maximum (exclusive) voltage values. The lower bound value should be a non-negative number (positive or zero). The upper bound value should be greater than the lower bound, or if set to zero, it will be treated as infinity. If not specified, a range of [0, infinity] is assumed.
Creates an instance of VoltageRange
.
Declaration
Swift
public init(
minVoltage: Measurement<UnitElectricPotentialDifference>,
maxVoltage: Measurement<UnitElectricPotentialDifference>
)
Parameters
minVoltage
|
The lower bound value of a voltage range. It should be a positive (non-negative) number. |
maxVoltage
|
The upper bound value of a voltage range should be greater than the lower bound, or if set to zero, it will be treated as infinity. |
The upper bound value of a voltage range. It should be greater than the lower bound, or if set to zero and it is treated as infinity.
Declaration
Swift
public let maxVoltage: Measurement<UnitElectricPotentialDifference>
The lower bound value of a voltage range. Should be a non-negative number.
Declaration
Swift
public let minVoltage: Measurement<UnitElectricPotentialDifference>